diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index e01770019b..9fd640e5b5 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -324,8 +324,8 @@ static const struct shader_templ templ_YUY2_UYVY_to_RGB = " dx2 = -dx1;\n" " dx1 = 0.0;\n" "}\n" - "uv_texel.rg = texture2D(Ytex, texcoord * tex_scale0 + dx1).r%c;\n" - "uv_texel.ba = texture2D(Ytex, texcoord * tex_scale0 + dx2).r%c;\n" + "uv_texel.rg = texture2D(Ytex, texcoord * tex_scale0 + vec2(dx1, 0.0)).r%c;\n" + "uv_texel.ba = texture2D(Ytex, texcoord * tex_scale0 + vec2(dx2, 0.0)).r%c;\n" "yuv.yz = uv_texel.%c%c;\n" "rgba.rgb = yuv_to_rgb (yuv, offset, coeff1, coeff2, coeff3);\n" "rgba.a = 1.0;\n"