diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/render.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/render.cc b/src/render/render.cc index dd5703a..c8c6225 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -107,6 +107,12 @@ void shutdown() { con_print << "^BShutting down renderer..." << std::endl; + // clear zone sky textures + for (core::Zone::Registry::iterator it = core::Zone::registry().begin(); it != core::Zone::registry().end(); it++) { + core::Zone *zone = (*it).second; + zone->set_sky_texture(0); + } + // clear entity models, this will force a reload for (core::Entity::Registry::iterator it = core::Entity::registry().begin(); it != core::Entity::registry().end(); it++) { core::Entity *entity = (*it).second; |