Browse Source

fix crash

David Rose 20 years ago
parent
commit
2c09d3b95a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -5053,6 +5053,7 @@ do_issue_texture() {
     nassertv(texture != (Texture *)NULL);
     nassertv(texture != (Texture *)NULL);
     
     
     if (i >= num_old_stages ||
     if (i >= num_old_stages ||
+	_state._texture == (TextureAttrib *)NULL ||
         stage != _state._texture->get_on_stage(i) ||
         stage != _state._texture->get_on_stage(i) ||
         texture != _state._texture->get_on_texture(stage) ||
         texture != _state._texture->get_on_texture(stage) ||
         stage->involves_color_scale()) {
         stage->involves_color_scale()) {