From c71aa43f1aeb92b2607e025207919b9d6e970553 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 28 Jul 2008 21:37:01 +0000 Subject: fix for the sky going white on r_restart --- src/render/render.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3