From b59d050e84fb90f6385bb02e26561c76d20340a0 Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Sun, 25 Apr 2010 10:31:01 +0200 Subject: [PATCH] [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. --- gst/gl/effects/gstgleffectssources.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/gl/effects/gstgleffectssources.c b/gst/gl/effects/gstgleffectssources.c index bcd9a620a0..aeaeb7d07b 100644 --- a/gst/gl/effects/gstgleffectssources.c +++ b/gst/gl/effects/gstgleffectssources.c @@ -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;"