Explorar el Código

drose: i'm such a dope

Asad M. Zaman hace 20 años
padre
commit
dfa0f96e3c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
 
-  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()) {
       gobj_cat.debug()
 	<< "Releasing normalization cube map\n";