diff options
| author | Ryan Houdek <Sonicadvance1@Gmail.com> | 2013-11-25 15:36:24 +0000 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@Gmail.com> | 2013-11-25 15:36:24 +0000 |
| commit | 421fd0e16e7de9e599c21fadc2f2b545d95bd1c1 (patch) | |
| tree | 5ac80e393ce7934d5211517d2693c888c6bdbee3 /Source/Core/VideoCommon | |
| parent | 64a1969e36960ab066c2130a276d005aa272bba9 (diff) | |
Fix OpenGL ES 3.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureConversionShader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureConversionShader.cpp b/Source/Core/VideoCommon/Src/TextureConversionShader.cpp index 92c38ca77d..b67a899438 100644 --- a/Source/Core/VideoCommon/Src/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/Src/TextureConversionShader.cpp @@ -113,7 +113,7 @@ void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType) void WriteSampleColor(char*& p, const char* colorComp, const char* dest, API_TYPE ApiType) { WRITE(p, // sampleUv is the sample position in (int)gx_coords - "uv0 = float2(sampleUv) + int2(%d,0);\n" // pixel offset (if more than one pixel is samped) + "uv0 = float2(sampleUv + int2(%d, 0));\n" // pixel offset (if more than one pixel is samped) "uv0 *= " I_COLORS".w;\n" // scale by two (if wanted) "uv0 += " I_COLORS".xy;\n" // move to copyed rect "uv0 += float2(0.5, 0.5);\n" // move to center of pixel |
