mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
oops
This commit is contained in:
parent
8196d44822
commit
8b83a2601a
@ -102,7 +102,7 @@ remove_gsg(GraphicsStateGuardianBase *gsg) {
|
||||
_gsgs.erase(gi);
|
||||
|
||||
if (_default_gsg == gsg) {
|
||||
if (_gsgs.empty()) {
|
||||
if (!_gsgs.empty()) {
|
||||
_default_gsg = *_gsgs.begin();
|
||||
} else {
|
||||
_default_gsg = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user