diff options
author | Brian <[email protected]> | 2007-12-07 20:58:01 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-07 20:58:01 -0700 |
commit | a110789f3ecc883fbd0f39758c40a6adc5118aff (patch) | |
tree | 68517bba4330bf701df0976ce476017efe394e95 /src/mesa/pipe/softpipe/sp_flush.c | |
parent | 5d4b53b3afcb6014200faad8712bbb13af30469e (diff) |
shorten loops over color bufs
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_flush.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_flush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_flush.c b/src/mesa/pipe/softpipe/sp_flush.c index 1010924bf61..47b11803ce1 100644 --- a/src/mesa/pipe/softpipe/sp_flush.c +++ b/src/mesa/pipe/softpipe/sp_flush.c @@ -55,7 +55,7 @@ softpipe_flush( struct pipe_context *pipe, * - flush the render cache */ - for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) + for (i = 0; i < softpipe->framebuffer.num_cbufs; i++) if (softpipe->cbuf_cache[i]) sp_flush_tile_cache(softpipe, softpipe->cbuf_cache[i]); |