Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the integer compare in our GLSL fmod function
  • Loading branch information
Sonicadvance1 committed May 11, 2013
1 parent 82cd91e commit bf67378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/Src/PixelShaderGen.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit bf67378

Please sign in to comment.