mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
8132b2fd57
commit
5018d3e650
1 changed files with 4 additions and 4 deletions
|
@ -5668,6 +5668,10 @@ done:;
|
||||||
Shader_Programify(ps);
|
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)
|
if (s->prog)
|
||||||
{
|
{
|
||||||
struct
|
struct
|
||||||
|
@ -5763,10 +5767,6 @@ done:;
|
||||||
#endif
|
#endif
|
||||||
s->passes->numMergedPasses = s->numpasses;
|
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
|
else
|
||||||
{
|
{
|
||||||
for (i = 0; i < s->numpasses; i++)
|
for (i = 0; i < s->numpasses; i++)
|
||||||
|
|
Loading…
Reference in a new issue