From f17bbd0ef56277af6f15339dfebd4d82f73df10b Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Wed, 12 Sep 2001 23:44:25 +0000 Subject: [PATCH] fix erroneous msg --- panda/src/dxgsg/dxGraphicsStateGuardian.I | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.I b/panda/src/dxgsg/dxGraphicsStateGuardian.I index 8fc9ef446e..33d48020ab 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.I +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.I @@ -112,15 +112,17 @@ enable_lighting(bool val) { INLINE void DXGraphicsStateGuardian:: enable_dither(bool val) { if (_dither_enabled != val) { - _dither_enabled = val; #ifdef _DEBUG { - if(val && (_D3DDevDesc.dpcTriCaps.dwRasterCaps & D3DPRASTERCAPS_DITHER)) + if(val && !(_D3DDevDesc.dpcTriCaps.dwRasterCaps & D3DPRASTERCAPS_DITHER)) dxgsg_cat.error() << "no HW support for color dithering!!\n"; + return; } #endif + _dither_enabled = val; + _d3dDevice->SetRenderState(D3DRENDERSTATE_DITHERENABLE, (DWORD)val); } }