diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-05-11 00:16:02 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-05-11 00:16:20 -0500 |
| commit | bf67378812931dc607ea42dba41bc06969ec7eda (patch) | |
| tree | a6931f5766ecbbe60f891841208827038c9d5c1c /Source | |
| parent | 82cd91e944a4c95dfff83be770b5d6b6c39c49d0 (diff) | |
Fix the integer compare in our GLSL fmod function
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 9ab5752e88..c1e57815f4 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -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) |
