From 2ed9484f06da94631dc31f24adb30617a7a0f8b5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 31 Jul 2006 21:05:10 +0000 Subject: [PATCH] fix typos in comments, fix show-transparency with M_dual --- panda/src/pgraph/config_pgraph.cxx | 4 ++-- panda/src/pgraph/cullResult.cxx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/panda/src/pgraph/config_pgraph.cxx b/panda/src/pgraph/config_pgraph.cxx index b8960b4ea2..ed2e0ca509 100644 --- a/panda/src/pgraph/config_pgraph.cxx +++ b/panda/src/pgraph/config_pgraph.cxx @@ -222,14 +222,14 @@ ConfigVariableBool show_vertex_animation ("show-vertex-animation", false, PRC_DESC("Set this true to flash any objects whose vertices are animated " "by Panda on the CPU (flash red) or by hardware (flash blue). " - "This only has effect when NDEBUG is defined.")); + "This only has effect when NDEBUG is not defined.")); ConfigVariableBool show_transparency ("show-transparency", false, PRC_DESC("Set this true to flash any objects that are rendered in " "some transparency mode. The color chosen is based on the " "particular transparency mode in effect. This only has effect " - "when NDEBUG is defined.")); + "when NDEBUG is not defined.")); ConfigVariableBool m_dual ("m-dual", true, diff --git a/panda/src/pgraph/cullResult.cxx b/panda/src/pgraph/cullResult.cxx index 4b13580a0d..39246a887e 100644 --- a/panda/src/pgraph/cullResult.cxx +++ b/panda/src/pgraph/cullResult.cxx @@ -139,6 +139,7 @@ add_object(CullableObject *object, const CullTraverser *traverser) { case TransparencyAttrib::M_dual: #ifndef NDEBUG check_flash_transparency(object->_state, flash_dual_color); + state = object->_state; #endif if (!m_dual) { // If m_dual is configured off, it becomes M_alpha.