From be0edea1909b58d0f17d13fda9fcf99df4150ca6 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 29 Sep 2005 21:28:39 +0000 Subject: [PATCH] fix crash with multiple GSG's --- panda/src/display/graphicsStateGuardian.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index 7e12cbf300..597a015ad8 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/panda/src/display/graphicsStateGuardian.cxx @@ -488,7 +488,7 @@ get_geom_munger(const RenderState *state) { // the only GSG in the world anyway. if (!state->_mungers.empty()) { RenderState::Mungers::const_iterator mi = state->_last_mi; - if ((*mi).first == this && !(*mi).first.was_deleted()) { + if (!(*mi).first.was_deleted() && (*mi).first == this) { return (*mi).second; } }