diff options
author | Brian Paul <[email protected]> | 2000-08-09 17:56:27 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-08-09 17:56:27 +0000 |
commit | 7aac6d6b8eea3fe364da0fff0904fdc668fa56ae (patch) | |
tree | cc4ba670772e4e2c3fa82c7c4fd45de8d8050687 /src/mesa | |
parent | 8deec7bf5fa0a1d1a899bfaa3406a8bdfcbb2300 (diff) |
fixed depth mask bug in fxddClear(DD_DEPTH_BIT)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |