summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-06-23 20:29:15 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-06-23 20:29:15 +0000
commit5aa48b622dc606861add0ddb173d67a0300351e4 (patch)
tree29e5dbb0bb10a80716349831c9f45fdd5598b270
parent2e156a37aa611a2e1717cca7bc0332d54c41f170 (diff)
fixed ColorMask test in update_rasterflags()
-rw-r--r--src/mesa/main/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index cfc4ccd062..368f11cd1f 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.18.2.9 2000/05/26 18:21:10 brianp Exp $ */
+/* $Id: context.c,v 1.18.2.10 2000/06/23 20:29:15 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -2059,7 +2059,7 @@ static void update_rasterflags( GLcontext *ctx )
ctx->RasterMask |= MULTI_DRAW_BIT;
ctx->TriangleCaps |= DD_MULTIDRAW;
}
- else if (ctx->Visual->RGBAflag && ctx->Color.ColorMask==0) {
+ else if (ctx->Visual->RGBAflag && *((GLuint *) ctx->Color.ColorMask) == 0) {
/* all RGBA channels disabled */
ctx->RasterMask |= MULTI_DRAW_BIT;
ctx->TriangleCaps |= DD_MULTIDRAW;