[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:
Filippo Argiolas 2010-04-25 10:31:01 +02:00 committed by Matthew Waters
parent f6b0a1db7b
commit b59d050e84

View file

@ -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;"