diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-09 16:32:40 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-09 16:32:40 +0000 |
commit | 766708d92de58ab294880cbfe82c94b9cb5e16b3 (patch) | |
tree | 3ed4cae31c508a0a7b72d9f52a99c3191ac3fb6f | |
parent | 2981bf4b5e66571cdf6e06710131d824632d1021 (diff) |
can't envmap if there is no sky
-rw-r--r-- | src/render/draw.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |