瀏覽代碼

fixed bugs in fxSetupDepthTest()

tags/mesa_3_3
Brian Paul 25 年之前
父節點
當前提交
c470d86633
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6
    4
      src/mesa/drivers/glide/fxsetup.c

+ 6
- 4
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);
}
}

/************************************************************************/

Loading…
取消
儲存