diff options
author | Brian Paul <[email protected]> | 2000-06-23 20:28:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-06-23 20:28:30 +0000 |
commit | 39103d2e20d998fe05e23a0d9332155fb865afe3 (patch) | |
tree | 719351e72253d0f613311d877fe736f6b2fc7f93 /src/mesa | |
parent | 401fc936f1c368a34e285075efe4070017054a7f (diff) |
fixed ColorMask test in update_rasterflags()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 1d04e233885..b64eaa623eb 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.16 2000/06/12 15:31:20 brianp Exp $ */ +/* $Id: state.c,v 1.17 2000/06/23 20:28:30 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -846,7 +846,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; |