summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2014-01-29 02:51:23 +1100
committerSebastian Dröge <sebastian@centricular.com>2014-01-30 20:54:42 +0100
commit99cf8037f401eb846616d98448ba3188d57e3a72 (patch)
treea76fd5031fbb0a0dc6163fc06820c63b178b6315
parent9b2fe45298f807aa7a83b0f08c60e7476ebacec6 (diff)
upload: fix texture scaling for YUY2/UYVY with GLES2
Another artifact from the transition to GL_TEXTURE_2D
-rw-r--r--gst-libs/gst/gl/gstglupload.c4
1 files 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"