From 99cf8037f401eb846616d98448ba3188d57e3a72 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 29 Jan 2014 02:51:23 +1100 Subject: 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 cf2945a..7a43163 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" -- cgit v1.2.3