From ef71a0fd4536363e578c49a05b6f1161f907c150 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Sun, 19 Aug 2007 20:12:26 +0200 Subject: nouveau: nv10: only one color buffer atm --- src/mesa/drivers/dri/nouveau/nv10_state.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/mesa/drivers/dri/nouveau/nv10_state.c') diff --git a/src/mesa/drivers/dri/nouveau/nv10_state.c b/src/mesa/drivers/dri/nouveau/nv10_state.c index 4a3646ea4f..0e48784084 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state.c @@ -149,12 +149,8 @@ static void nv10Clear(GLcontext *ctx, GLbitfield mask) { nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx); - if (mask & (BUFFER_BIT_FRONT_LEFT)) { - nv10ClearBuffer(ctx, nmesa->color_buffer[0], - nmesa->clear_color_value, 0xffffffff); - } - if (mask & (BUFFER_BIT_BACK_LEFT)) { - nv10ClearBuffer(ctx, nmesa->color_buffer[1], + if (mask & (BUFFER_BIT_FRONT_LEFT|BUFFER_BIT_BACK_LEFT)) { + nv10ClearBuffer(ctx, nmesa->color_buffer, nmesa->clear_color_value, 0xffffffff); } /* FIXME: check depth bits */ @@ -769,8 +765,7 @@ static GLboolean nv10BindBuffers(nouveauContextPtr nmesa, int num_color, GLuint pitch, format, depth_pitch; /* Store buffer pointers in context */ - nmesa->color_buffer[0] = color[0]; - nmesa->color_buffer[1] = color[1]; + nmesa->color_buffer = color[0]; nmesa->depth_buffer = depth; w = color[0]->mesa.Width; -- cgit v1.2.3