summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_context.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-12-07 20:58:01 -0700
committerBrian <[email protected]>2007-12-07 20:58:01 -0700
commita110789f3ecc883fbd0f39758c40a6adc5118aff (patch)
tree68517bba4330bf701df0976ce476017efe394e95 /src/mesa/pipe/softpipe/sp_context.c
parent5d4b53b3afcb6014200faad8712bbb13af30469e (diff)
shorten loops over color bufs
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c
index bdfd6228ef8..df4e0cbd5ae 100644
--- a/src/mesa/pipe/softpipe/sp_context.c
+++ b/src/mesa/pipe/softpipe/sp_context.c
@@ -94,7 +94,7 @@ softpipe_unmap_surfaces(struct softpipe_context *sp)
struct pipe_surface *ps;
uint i;
- for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++)
+ for (i = 0; i < sp->framebuffer.num_cbufs; i++)
sp_flush_tile_cache(sp, sp->cbuf_cache[i]);
sp_flush_tile_cache(sp, sp->zbuf_cache);
sp_flush_tile_cache(sp, sp->sbuf_cache);