Fix the integer compare in our GLSL fmod function

This commit is contained in:
Ryan Houdek 2013-05-11 00:16:02 -05:00
parent 82cd91e944
commit bf67378812
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
WRITE(p, "float fmod( float x, float y )\n");
WRITE(p, "{\n");
WRITE(p, "\tfloat z = fract( abs( x / y) ) * abs( y );\n");
WRITE(p, "\treturn (x < 0) ? -z : z;\n");
WRITE(p, "\treturn (x < 0.0) ? -z : z;\n");
WRITE(p, "}\n");
for (int i = 0; i < 8; ++i)