summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-01-05 17:07:44 -0700
committerBrian Paul <brianp@vmware.com>2010-01-05 17:07:44 -0700
commit88330c64388a3322a64a7afb75cd5a6a51581928 (patch)
tree33c25145e02bfa10244ef4e277e0f7578e917768 /src
parent2fbc3931fca427e9312f40d62f3fe3dde3f31e19 (diff)
gallium/util: replace 8 with PIPE_MAX_COLOR_BUFS
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_simple_shaders.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c
index daa1f82cdd..b751e29ab6 100644
--- a/src/gallium/auxiliary/util/u_simple_shaders.c
+++ b/src/gallium/auxiliary/util/u_simple_shaders.c
@@ -203,10 +203,10 @@ util_make_fragment_clonecolor_shader(struct pipe_context *pipe, int num_cbufs)
{
struct ureg_program *ureg;
struct ureg_src src;
- struct ureg_dst dst[8];
+ struct ureg_dst dst[PIPE_MAX_COLOR_BUFS];
int i;
- assert(num_cbufs <= 8);
+ assert(num_cbufs <= PIPE_MAX_COLOR_BUFS);
ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
if (ureg == NULL)