gallium/util: replace 8 with PIPE_MAX_COLOR_BUFS

This commit is contained in:
Brian Paul
2010-01-05 17:07:44 -07:00
parent 2fbc3931fc
commit 88330c6438
@@ -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)