Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-28 21:37:01 +0000
committerStijn Buys <ingar@osirion.org>2008-07-28 21:37:01 +0000
commitc71aa43f1aeb92b2607e025207919b9d6e970553 (patch)
tree92ab1d601316a0014545f1afccc4ce7411b34966 /src/render/render.cc
parent40698bac1e7d03b8f472fa4d8d35aa644da95c5f (diff)
fix for the sky going white on r_restart
Diffstat (limited to 'src/render/render.cc')
-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;