From 68651c3243f5539caaa0f8b81bc2ad025610606d Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 20 Dec 2011 12:36:18 +0100 Subject: [PATCH] vl: Remove unused declaration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit csc is not used for rgba and gives a warning. Signed-off-by: Maarten Lankhorst Signed-off-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2