diff options
author | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-04-25 10:31:01 +0200 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-04-25 10:31:01 +0200 |
commit | f39ceaaf48418e40d9f35f50f530bcbc3ce2cf55 (patch) | |
tree | 9d3a536358241f9fa69c036d0b8249f9c95f06ab | |
parent | 239309de58f805ec26976693016427c672131935 (diff) |
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.
-rw-r--r-- | gst/gl/effects/gstgleffectssources.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/gl/effects/gstgleffectssources.c b/gst/gl/effects/gstgleffectssources.c index bcd9a62..aeaeb7d 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;" |