[871/906] upload: fix texture scaling for YUY2/UYVY with GLES2

Another artifact from the transition to GL_TEXTURE_2D
This commit is contained in:
Matthew Waters 2014-01-29 02:51:23 +11:00
parent 31eb2f5f0d
commit 721a5d4c36

View file

@ -336,8 +336,8 @@ static const gchar *frag_YUY2_UYVY_gles2 =
" fx = v_texcoord.x;\n"
" fy = v_texcoord.y;\n"
" yuv.x = texture2D(Ytex,vec2(fx,fy)).%c;\n"
" yuv.y = texture2D(UVtex,vec2(fx*0.5,fy)).%c;\n"
" yuv.z = texture2D(UVtex,vec2(fx*0.5,fy)).%c;\n"
" yuv.y = texture2D(UVtex,vec2(fx,fy)).%c;\n"
" yuv.z = texture2D(UVtex,vec2(fx,fy)).%c;\n"
" yuv+=offset;\n"
" r = dot(yuv, rcoeff);\n"
" g = dot(yuv, gcoeff);\n"