vl: Remove unused declaration
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Tue, 20 Dec 2011 11:36:18 +0000 (12:36 +0100)
committerChristian König <deathsimple@vodafone.de>
Tue, 20 Dec 2011 12:12:39 +0000 (13:12 +0100)
csc is not used for rgba and gives a warning.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/auxiliary/vl/vl_compositor.c

index 663c18059b2eb8304dca682425635ffb66b21bbc..f20941b44007c61164b2fdeca6e8d4da12e285ed 100644 (file)
@@ -132,7 +132,7 @@ create_frag_shader_palette(struct vl_compositor *c, bool include_cc)
    if (!shader)
       return false;
 
-   for (i = 0; i < 3; ++i)
+   for (i = 0; include_cc && i < 3; ++i)
       csc[i] = ureg_DECL_constant(shader, i);
 
    tc = ureg_DECL_fs_input(shader, TGSI_SEMANTIC_GENERIC, 1, TGSI_INTERPOLATE_LINEAR);