glconvert: Fix compilation of GRAY16_LE/BE shader

This commit is contained in:
Nicolas Dufresne 2015-12-18 15:36:40 -05:00 committed by Tim-Philipp Müller
parent 8492c045a4
commit 35075fcb78

View file

@ -186,7 +186,7 @@ static const struct shader_templ templ_COMPOSE =
{ NULL, },
"vec4 rgba;\n"
"vec4 t = texture2D(tex, texcoord * tex_scale0);\n"
"rgba.rgb = dot(t.%c%c, compose_weight);"
"rgba.rgb = vec3 (dot(t.%c%c, compose_weight));"
"rgba.a = 1.0;\n"
"gl_FragColor = vec4(rgba.%c, rgba.%c, rgba.%c, rgba.%c);\n",
GST_GL_TEXTURE_TARGET_2D