summaryrefslogtreecommitdiff
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-04-01 05:42:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-04-01 05:42:06 +0000
commit199d039bc365ce6b3f42037497b1e7ebe232bc69 (patch)
tree7f471d72cb3e97bdfee604f618bfb04cc11c5e52 /src/mesa/main/state.c
parent25673f0cbadd657867e05ef1838779524593049b (diff)
changes for GL_HP_occlusion_test
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index d82ffa5744..5c3b316f89 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.5 2000/03/11 23:23:26 brianp Exp $ */
+/* $Id: state.c,v 1.6 2000/04/01 05:42:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -791,16 +791,9 @@ static void update_rasterflags( GLcontext *ctx )
ctx->RasterMask |= WINCLIP_BIT;
}
- if (ctx->Depth.OcclusionTest) {
- if (ctx->Color.ColorMask[0] == 0 &&
- ctx->Color.ColorMask[1] == 0 &&
- ctx->Color.ColorMask[2] == 0 &&
- ctx->Color.ColorMask[3] == 0 &&
- ctx->Depth.Mask == GL_FALSE &&
- !ctx->Stencil.Enabled) {
- ctx->RasterMask |= OCCLUSION_BIT;
- }
- }
+ if (ctx->Depth.OcclusionTest)
+ ctx->RasterMask |= OCCLUSION_BIT;
+
/* If we're not drawing to exactly one color buffer set the
* MULTI_DRAW_BIT flag. Also set it if we're drawing to no