summaryrefslogtreecommitdiff
path: root/src/mesa/main/blend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r--src/mesa/main/blend.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index fde542c4b9..0257528581 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -549,7 +549,6 @@ void _mesa_init_color( GLcontext * ctx )
ctx->Color.ColorMask[3] = 0xff;
ctx->Color.ClearIndex = 0;
ASSIGN_4V( ctx->Color.ClearColor, 0, 0, 0, 0 );
- ctx->Color.DrawBuffer = GL_FRONT;
ctx->Color.AlphaEnabled = GL_FALSE;
ctx->Color.AlphaFunc = GL_ALWAYS;
ctx->Color.AlphaRef = 0;
@@ -568,12 +567,12 @@ void _mesa_init_color( GLcontext * ctx )
ctx->Color.DitherFlag = GL_TRUE;
if (ctx->Visual.doubleBufferMode) {
- ctx->Color.DrawBuffer = GL_BACK;
- ctx->Color._DrawDestMask = DD_BACK_LEFT_BIT;
+ ctx->Color.DrawBuffer[0] = GL_BACK;
+ ctx->Color._DrawDestMask[0] = DD_BACK_LEFT_BIT;
}
else {
- ctx->Color.DrawBuffer = GL_FRONT;
- ctx->Color._DrawDestMask = DD_FRONT_LEFT_BIT;
+ ctx->Color.DrawBuffer[0] = GL_FRONT;
+ ctx->Color._DrawDestMask[0] = DD_FRONT_LEFT_BIT;
}
}