mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
[427/906] rgb_to_curve: save up a texture indirection
Apparently assigning gl_TexCoord to a temp count as an indirection. Using it directly avoids it and limits indirections to four not exceeding i915 limit. Now xpro effect works on i915.
This commit is contained in:
parent
f6b0a1db7b
commit
b59d050e84
1 changed files with 1 additions and 2 deletions
|
@ -383,8 +383,7 @@ const gchar *rgb_to_curve_fragment_source =
|
|||
"uniform sampler2DRect tex;"
|
||||
"uniform sampler1D curve;"
|
||||
"void main () {"
|
||||
" vec2 texturecoord = gl_TexCoord[0].st;"
|
||||
" vec4 color = texture2DRect (tex, texturecoord);"
|
||||
" vec4 color = texture2DRect (tex, gl_TexCoord[0].st);"
|
||||
" vec4 outcolor;"
|
||||
" outcolor.r = texture1D(curve, color.r).r;"
|
||||
" outcolor.g = texture1D(curve, color.g).g;"
|
||||
|
|
Loading…
Reference in a new issue