1
0
Fork 0
forked from fte/fteqw

Fix crash from rtlights on inefficient deformVertexes shaders in wastes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6085 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-10-22 22:27:14 +00:00
parent 8132b2fd57
commit 5018d3e650

View file

@ -5668,6 +5668,10 @@ done:;
Shader_Programify(ps);
}
if( s->numdeforms ||
s->sort == SHADER_SORT_PORTAL || //q3-style portals (needed for pvs info)
s->flags & (SHADER_HASREFLECT|SHADER_HASREFRACT)) //water effects (needed for pvs info)
s->flags |= SHADER_NEEDSARRAYS;
if (s->prog)
{
struct
@ -5763,10 +5767,6 @@ done:;
#endif
s->passes->numMergedPasses = s->numpasses;
}
else if(s->numdeforms ||
s->sort == SHADER_SORT_PORTAL || //q3-style portals (needed for pvs info)
s->flags & (SHADER_HASREFLECT|SHADER_HASREFRACT)) //water effects (needed for pvs info)
s->flags |= SHADER_NEEDSARRAYS;
else
{
for (i = 0; i < s->numpasses; i++)