Browse Source

fix bug in prev chkin

cxgeorge 24 years ago
parent
commit
a4c5d7f923
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/dxgsg/dxGraphicsStateGuardian.cxx

+ 1 - 1
panda/src/dxgsg/dxGraphicsStateGuardian.cxx

@@ -4054,7 +4054,7 @@ void DXGraphicsStateGuardian::
 issue_color(const ColorAttribute *attrib) {
     
     bool bAttribOn=attrib->is_on();
-    bool bIsReal = attrib->is_real();
+    bool bIsReal = (bAttribOn ? attrib->is_real() : false);
 
     _issued_color_enabled = bAttribOn;