diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 978b6e4f6b..4750a17007 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -5652,11 +5652,10 @@ make_from_bam(const FactoryParams ¶ms) { me = TexturePool::load_cube_map(filename, false, options); break; } - - me->fillin_from(dummy); } if (me != (Texture *)NULL) { + me->fillin_from(dummy); me->set_name(name); } }