From 721a5d4c3607130e3bb1475fa8c6b35643c6beab Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 29 Jan 2014 02:51:23 +1100 Subject: [PATCH] [871/906] upload: fix texture scaling for YUY2/UYVY with GLES2 Another artifact from the transition to GL_TEXTURE_2D --- gst-libs/gst/gl/gstglupload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index cf2945afb1..7a43163b44 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -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"