Fix a issue in the texture conversion shaders that was multiplying an integer with a float.

This commit is contained in:
Ryan Houdek 2013-07-21 11:17:21 +00:00
parent fec641d14a
commit 6194234a54
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ void WriteSampleColor(char*& p, const char* colorComp, const char* dest, API_TYP
else
texSampleIncrementUnit = I_COLORS"[0].x";
WRITE(p, " %s = %s(samp0, sampleUv + float2(%d * (%s), 0)).%s;\n",
WRITE(p, " %s = %s(samp0, sampleUv + float2(%d.0f * (%s), 0)).%s;\n",
dest, texSampleOpName, s_incrementSampleXCount, texSampleIncrementUnit, colorComp);
}