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:
parent
083ca12678
commit
6f52e8ea5a
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue