diff options
| author | degasus <wickmarkus@web.de> | 2014-02-16 15:17:21 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-02-26 11:37:28 +0100 |
| commit | 7f539b6033a07550000d33e8d6e4f8bf0fbf96cc (patch) | |
| tree | ac2ae065235c56027cb0acd3f993351ac7644441 /Source/Core | |
| parent | 6959a935999459a01a2bad742cc97cc8cdaa9f57 (diff) | |
ogl: optimize real xfb a bit
Both nvidia + mesa seems not to optimize x / (2**n) to x >> n, so we do it ourself.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureConverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureConverter.cpp b/Source/Core/VideoBackends/OGL/TextureConverter.cpp index 753bd64ada..dbbb605f6b 100644 --- a/Source/Core/VideoBackends/OGL/TextureConverter.cpp +++ b/Source/Core/VideoBackends/OGL/TextureConverter.cpp @@ -117,7 +117,7 @@ void CreatePrograms() " ivec2 uv = ivec2(gl_FragCoord.xy);\n" // We switch top/bottom here. TODO: move this to screen blit. " ivec2 ts = textureSize(samp9, 0);\n" - " vec4 c0 = texelFetch(samp9, ivec2(uv.x/2, ts.y-uv.y-1), 0);\n" + " vec4 c0 = texelFetch(samp9, ivec2(uv.x>>1, ts.y-uv.y-1), 0);\n" " float y = mix(c0.b, c0.r, (uv.x & 1) == 1);\n" " float yComp = 1.164 * (y - 0.0625);\n" " float uComp = c0.g - 0.5;\n" |
