diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-28 21:37:01 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-28 21:37:01 +0000 |
commit | c71aa43f1aeb92b2607e025207919b9d6e970553 (patch) | |
tree | 92ab1d601316a0014545f1afccc4ce7411b34966 /src/render | |
parent | 40698bac1e7d03b8f472fa4d8d35aa644da95c5f (diff) |
fix for the sky going white on r_restart
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; |