summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-06-05 23:53:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-06-05 23:53:06 +0000
commitc470d8663341faed6943a52a3b307e89b52a24ba (patch)
tree911f676b3e7c76a80c60794f74bf3f711f003f0d /src
parent97529e8e1ae39e8d7e968ffdf04c3dbe591625c0 (diff)
fixed bugs in fxSetupDepthTest()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/glide/fxsetup.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/glide/fxsetup.c b/src/mesa/drivers/glide/fxsetup.c
index 5e82443d78..f1a56650bd 100644
--- a/src/mesa/drivers/glide/fxsetup.c
+++ b/src/mesa/drivers/glide/fxsetup.c
@@ -1384,12 +1384,14 @@ static void fxSetupDepthTest(GLcontext *ctx)
fxMesaContext fxMesa=(fxMesaContext)ctx->DriverCtx;
tfxUnitsState *us=&fxMesa->unitsState;
- if(us->depthTestEnabled)
+ if (us->depthTestEnabled) {
FX_grDepthBufferFunction(us->depthTestFunc);
- else
+ FX_grDepthMask(us->depthMask);
+ }
+ else {
FX_grDepthBufferFunction(GR_CMP_ALWAYS);
-
- FX_grDepthMask(us->depthMask);
+ FX_grDepthMask(FXFALSE);
+ }
}
/************************************************************************/