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
This commit is contained in:
Spoike 2005-12-27 16:54:28 +00:00
parent 083ca12678
commit 6f52e8ea5a

View file

@ -1406,7 +1406,7 @@ void Shader_Finish ( shader_t *s )
s->flags |= SHADER_FLARE; 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[s->numpasses++];
pass = &s->passes[0]; pass = &s->passes[0];