From 766708d92de58ab294880cbfe82c94b9cb5e16b3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 9 Aug 2009 16:32:40 +0000 Subject: can't envmap if there is no sky --- src/render/draw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/render/draw.cc b/src/render/draw.cc index c559353..52933b7 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -632,7 +632,7 @@ void draw_model_fragments(model::Model *model, } if (material->flags() & model::Material::Environment) { - if (!use_env) { + if (!use_env && core::localplayer()->zone()->sky_texture()) { Textures::bind(core::localplayer()->zone()->sky_texture()); // enable env mapping -- cgit v1.2.3