Pārlūkot izejas kodu

drose: i'm such a dope

Asad M. Zaman 20 gadi atpakaļ
vecāks
revīzija
dfa0f96e3c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      panda/src/gobj/texturePool.cxx

+ 2 - 1
panda/src/gobj/texturePool.cxx

@@ -331,7 +331,8 @@ ns_garbage_collect() {
 
 
   _textures.swap(new_set);
   _textures.swap(new_set);
 
 
-  if (_normalization_cube_map->get_ref_count() == 1) {
+  if (_normalization_cube_map != (Texture *)NULL &&
+      _normalization_cube_map->get_ref_count() == 1) {
     if (gobj_cat.is_debug()) {
     if (gobj_cat.is_debug()) {
       gobj_cat.debug()
       gobj_cat.debug()
 	<< "Releasing normalization cube map\n";
 	<< "Releasing normalization cube map\n";