From e637ad65865eb6e24db76a60eb276f425a01fe8a Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Wed, 15 May 2002 01:10:00 +0000 Subject: [PATCH] fix alphatest init --- panda/src/dxgsg/dxGraphicsStateGuardian.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index 133c6d9df2..3af666f6ce 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -805,7 +805,7 @@ dx_init( void) { _alpha_func = D3DCMP_ALWAYS; _alpha_func_refval = 1.0f; scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHAFUNC, _alpha_func); - scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHAREF, _alpha_func_refval); + scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHAREF, (_alpha_func_refval*255.0f)); _alpha_test_enabled = false; scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHATESTENABLE, _alpha_test_enabled);