diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-09 21:10:39 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-09 21:10:39 -0700 |
commit | 98848382731b71a51e4a80f1820f009e70f06a25 (patch) | |
tree | 13d6a08bf46f492ee5266069de248de9642c74b1 /src/mesa/pipe/softpipe/sp_quad_colormask.c | |
parent | 04e88f469cf6c338ba04640738865b59e160c3d4 (diff) |
Fix looping for multi-color buffer writing.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_colormask.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_colormask.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_colormask.c b/src/mesa/pipe/softpipe/sp_quad_colormask.c index c585aa3edd..f5e0a32d1b 100644 --- a/src/mesa/pipe/softpipe/sp_quad_colormask.c +++ b/src/mesa/pipe/softpipe/sp_quad_colormask.c @@ -50,7 +50,8 @@ colormask_quad(struct quad_stage *qs, struct quad_header *quad) float dest[4][QUAD_SIZE]; struct softpipe_cached_tile *tile = sp_get_cached_tile(softpipe, - softpipe->cbuf_cache[0], quad->x0, quad->y0); + softpipe->cbuf_cache[softpipe->current_cbuf], + quad->x0, quad->y0); uint i, j; /* get/swizzle dest colors */ |