Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render/render.cc6
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;