diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index 5dbead51b..52af63094 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -1406,7 +1406,7 @@ void Shader_Finish ( shader_t *s ) s->flags |= SHADER_FLARE; } - if (!s->numpasses && !(s->flags & (SHADER_NODRAW|SHADER_SKY))) + if (!s->numpasses && !(s->flags & (SHADER_NODRAW|SHADER_SKY)) && !s->fog_dist) { pass = &s->passes[s->numpasses++]; pass = &s->passes[0];