Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #299 from Sonicadvance1/EFBRam-FixGLSLES
Fix texture conversion shaders for GLSL ES.
  • Loading branch information
Sonicadvance1 committed Apr 23, 2014
2 parents 9f12d02 + fd37a76 commit 864aad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/TextureConversionShader.cpp
Expand Up @@ -115,7 +115,7 @@ void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType)
WRITE(p, " uv0.y = 1.0-uv0.y;\n");
}

WRITE(p, " float sample_offset = position.w / float(%d);\n", EFB_WIDTH);
WRITE(p, " float sample_offset = float(position.w) / float(%d);\n", EFB_WIDTH);
}

void WriteSampleColor(char*& p, const char* colorComp, const char* dest, int xoffset, API_TYPE ApiType)
Expand Down

0 comments on commit 864aad6

Please sign in to comment.