Browse Source

fix M_dual

David Rose 19 years ago
parent
commit
d5dcdc63ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/cullResult.cxx

+ 1 - 1
panda/src/pgraph/cullResult.cxx

@@ -140,7 +140,7 @@ add_object(CullableObject *object, const CullTraverser *traverser) {
 #ifndef NDEBUG
 #ifndef NDEBUG
       check_flash_transparency(object->_state, flash_dual_color);
       check_flash_transparency(object->_state, flash_dual_color);
 #endif
 #endif
-      if (m_dual) {
+      if (!m_dual) {
         // If m_dual is configured off, it becomes M_alpha.
         // If m_dual is configured off, it becomes M_alpha.
         break;
         break;
       }
       }