mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix the integer compare in our GLSL fmod function
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user