summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/glide
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-08-09 17:56:27 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-08-09 17:56:27 +0000
commit7aac6d6b8eea3fe364da0fff0904fdc668fa56ae (patch)
treecc4ba670772e4e2c3fa82c7c4fd45de8d8050687 /src/mesa/drivers/glide
parent8deec7bf5fa0a1d1a899bfaa3406a8bdfcbb2300 (diff)
fixed depth mask bug in fxddClear(DD_DEPTH_BIT)
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r--src/mesa/drivers/glide/fxdd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c
index 2705d6bc17..fc8bbb8242 100644
--- a/src/mesa/drivers/glide/fxdd.c
+++ b/src/mesa/drivers/glide/fxdd.c
@@ -274,6 +274,8 @@ static GLbitfield fxDDClear(GLcontext *ctx, GLbitfield mask, GLboolean all,
FX_grColorMask(FXTRUE, ctx->Color.ColorMask[ACOMP] && fxMesa->haveAlphaBuffer);
if (ctx->Color.DrawDestMask & FRONT_LEFT_BIT)
FX_grRenderBuffer(GR_BUFFER_FRONTBUFFER);
+ if (!ctx->Depth.Test || !ctx->Depth.Mask)
+ FX_grDepthMask(FXFALSE);
break;
default:
/* error */