fixed depth mask bug in fxddClear(DD_DEPTH_BIT)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Aug 2000 17:56:27 +0000 (17:56 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Aug 2000 17:56:27 +0000 (17:56 +0000)
src/mesa/drivers/glide/fxdd.c

index 2705d6bc17dbe4909f3787bda7caf27fe387ff1e..fc8bbb8242850fceaa6846daff3f1195d524c6bd 100644 (file)
@@ -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 */