From 2c09d3b95a9458e510af04ec57b8dc86c2ecf5fb Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 27 Sep 2005 22:43:57 +0000 Subject: [PATCH] fix crash --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index c7e43c4515..5a07516657 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -5053,6 +5053,7 @@ do_issue_texture() { nassertv(texture != (Texture *)NULL); if (i >= num_old_stages || + _state._texture == (TextureAttrib *)NULL || stage != _state._texture->get_on_stage(i) || texture != _state._texture->get_on_texture(stage) || stage->involves_color_scale()) {