mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
glcolorconvert: don't use the predefined variable name sample
Using 'sample' as a variable name is an error in GLES3
This commit is contained in:
parent
e3b5214ac6
commit
597e98b64a
1 changed files with 2 additions and 2 deletions
|
@ -261,9 +261,9 @@ static const struct shader_templ templ_RGB_to_PLANAR_YUV =
|
|||
" for (int j = 0; j < int(chroma_sampling.y); j++) {\n"
|
||||
" int n = (i+1)*(j+1);\n"
|
||||
" delta.y = float(j);\n"
|
||||
" vec4 sample = texture2D(tex, (chroma_pos + delta) / unnormalization).%c%c%c%c;\n"
|
||||
" vec4 s = texture2D(tex, (chroma_pos + delta) / unnormalization).%c%c%c%c;\n"
|
||||
/* rolling average */
|
||||
" uv_texel = (float(n-1) * uv_texel + sample) / float(n);\n"
|
||||
" uv_texel = (float(n-1) * uv_texel + s) / float(n);\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
|
|
Loading…
Reference in a new issue