mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
fix crash with multiple GSG's
This commit is contained in:
parent
26f187350d
commit
be0edea190
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user