Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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