Opengl: Fix opengl realxfb "macroblocking"/bluring issue.

YUYV textures should NEVER be interpolated/filtered in RGB colour space.
Use TexelFetch to always fetch an actual texture sample.

issue 6503
This commit is contained in:
Scott Mansell 2013-11-24 17:15:11 +13:00
parent 09f4439d0c
commit eef2cddfd7

View File

@ -85,7 +85,7 @@ void CreatePrograms()
"COLOROUT(ocol0)\n" "COLOROUT(ocol0)\n"
"void main()\n" "void main()\n"
"{\n" "{\n"
" vec4 c0 = texture2DRect(samp9, uv0).rgba;\n" " vec4 c0 = texelFetch(samp9, ivec2(uv0));\n"
" float f = step(0.5, fract(uv0.x));\n" " float f = step(0.5, fract(uv0.x));\n"
" float y = mix(c0.b, c0.r, f);\n" " float y = mix(c0.b, c0.r, f);\n"
" float yComp = 1.164 * (y - 0.0625);\n" " float yComp = 1.164 * (y - 0.0625);\n"