From: Brian Paul Date: Wed, 9 Aug 2000 17:56:27 +0000 (+0000) Subject: fixed depth mask bug in fxddClear(DD_DEPTH_BIT) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7aac6d6b8eea3fe364da0fff0904fdc668fa56ae;p=mesa.git fixed depth mask bug in fxddClear(DD_DEPTH_BIT) --- diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index 2705d6bc17d..fc8bbb82428 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 */