From dfa0f96e3c1b880bdfc260e356548d9c2fe5456b Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Wed, 3 Aug 2005 22:55:17 +0000 Subject: [PATCH] drose: i'm such a dope --- panda/src/gobj/texturePool.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/gobj/texturePool.cxx b/panda/src/gobj/texturePool.cxx index 81f8bf0693..7086462881 100644 --- a/panda/src/gobj/texturePool.cxx +++ b/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";