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>2009-08-09 16:32:40 +0000
committerStijn Buys <ingar@osirion.org>2009-08-09 16:32:40 +0000
commit766708d92de58ab294880cbfe82c94b9cb5e16b3 (patch)
tree3ed4cae31c508a0a7b72d9f52a99c3191ac3fb6f /src/render
parent2981bf4b5e66571cdf6e06710131d824632d1021 (diff)
can't envmap if there is no sky
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc2
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