summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_colormask.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-12 14:13:48 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-12 14:13:48 -0600
commita48d767cf2ec82d0c0f893a22d22e8593901b206 (patch)
tree732104c0465295a05709e4caf786b722b393769e /src/mesa/pipe/softpipe/sp_quad_colormask.c
parente8ceb5a2eb174f5444eaf5f52925fa161ea7d0a9 (diff)
Add a quad 'bufloop' stage to handle glDrawBuffer(GL_FRONT_AND_BACK).
This removes the notion of multiple color buffers from all other stages. Will need a bit more work when shaders with multiple render targets arrive.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_colormask.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_colormask.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_colormask.c b/src/mesa/pipe/softpipe/sp_quad_colormask.c
index 6fb228fdda..fff6efa8f6 100644
--- a/src/mesa/pipe/softpipe/sp_quad_colormask.c
+++ b/src/mesa/pipe/softpipe/sp_quad_colormask.c
@@ -45,12 +45,8 @@ static void
colormask_quad(struct quad_stage *qs, struct quad_header *quad)
{
struct softpipe_context *softpipe = qs->softpipe;
+ struct softpipe_surface *sps = softpipe_surface(softpipe->cbuf);
GLfloat dest[4][QUAD_SIZE];
-
- /* XXX buffer looping */
-
- struct softpipe_surface *sps
- = softpipe_surface(softpipe->framebuffer.cbufs[0]);
sps->read_quad_f_swz(sps, quad->x0, quad->y0, dest);