From 6f52e8ea5ae028d22df1394f877544519a0a8655 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 27 Dec 2005 16:54:28 +0000 Subject: [PATCH] Fixes the fog shader on q3dm4 and similar shaders (they do occur elsewhere in std q3). git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1742 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];