diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 20:58:01 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 20:58:01 -0700 |
commit | a110789f3ecc883fbd0f39758c40a6adc5118aff (patch) | |
tree | 68517bba4330bf701df0976ce476017efe394e95 /src/mesa/pipe/softpipe/sp_context.c | |
parent | 5d4b53b3afcb6014200faad8712bbb13af30469e (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.c | 2 |
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 bdfd6228ef..df4e0cbd5a 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); |