mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix erroneous msg
This commit is contained in:
parent
e3f2d56b6f
commit
f17bbd0ef5
@ -112,15 +112,17 @@ enable_lighting(bool val) {
|
|||||||
INLINE void DXGraphicsStateGuardian::
|
INLINE void DXGraphicsStateGuardian::
|
||||||
enable_dither(bool val) {
|
enable_dither(bool val) {
|
||||||
if (_dither_enabled != val) {
|
if (_dither_enabled != val) {
|
||||||
_dither_enabled = val;
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#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";
|
dxgsg_cat.error() << "no HW support for color dithering!!\n";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
_dither_enabled = val;
|
||||||
|
|
||||||
_d3dDevice->SetRenderState(D3DRENDERSTATE_DITHERENABLE, (DWORD)val);
|
_d3dDevice->SetRenderState(D3DRENDERSTATE_DITHERENABLE, (DWORD)val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user