summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMaarten Lankhorst <[email protected]>2011-12-20 12:36:18 +0100
committerChristian König <[email protected]>2011-12-20 13:12:39 +0100
commit68651c3243f5539caaa0f8b81bc2ad025610606d (patch)
treef13b2f7898c3f219a6a2d02e07e9269429ca4922 /src/gallium/auxiliary
parent72325ee6e35fc3941dc04a87e14e0ba0c9eec52e (diff)
vl: Remove unused declaration
csc is not used for rgba and gives a warning. Signed-off-by: Maarten Lankhorst <[email protected]> Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/vl/vl_compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c
index 663c18059b2..f20941b4400 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.c
+++ b/src/gallium/auxiliary/vl/vl_compositor.c
@@ -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);