mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
glconvert: Fix compilation of GRAY16_LE/BE shader
This commit is contained in:
parent
8492c045a4
commit
35075fcb78
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue