From 75b1470d8ea10a7b0f0b9a2c135bec9d8a6dff55 Mon Sep 17 00:00:00 2001 From: georges <> Date: Thu, 15 Feb 2001 18:47:47 +0000 Subject: [PATCH] fergot to check this in --- panda/src/dxgsg/dxGraphicsStateGuardian.I | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.I b/panda/src/dxgsg/dxGraphicsStateGuardian.I index 62674100f9..23d855e687 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.I +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.I @@ -680,6 +680,19 @@ enable_blend(bool val) { } } +//////////////////////////////////////////////////////////////////// +// Function: DXGraphicsStateGuardian::enable_blend +// Access: +// Description: +//////////////////////////////////////////////////////////////////// +INLINE void DXGraphicsStateGuardian:: +set_shademode(D3DSHADEMODE val) { + if (_CurShadeMode != val) { + _CurShadeMode = val; + _d3dDevice->SetRenderState(D3DRENDERSTATE_SHADEMODE, (DWORD)val); + } +} + //////////////////////////////////////////////////////////////////// // Function: DXGraphicsStateGuardian::enable_fog // Access: