From: Brian Paul Date: Mon, 5 Jun 2000 23:53:06 +0000 (+0000) Subject: fixed bugs in fxSetupDepthTest() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c470d8663341faed6943a52a3b307e89b52a24ba;p=mesa.git fixed bugs in fxSetupDepthTest() --- diff --git a/src/mesa/drivers/glide/fxsetup.c b/src/mesa/drivers/glide/fxsetup.c index 5e82443d78d..f1a56650bde 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); + } } /************************************************************************/