mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Performance fix for Polymost wall sprite z-fighting avoidance
git-svn-id: https://svn.eduke32.com/eduke32@5787 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
212e84ce21
commit
aca0807a81
1 changed files with 8 additions and 5 deletions
|
@ -4577,16 +4577,19 @@ void polymost_drawsprite(int32_t snum)
|
|||
{
|
||||
w = polymost_findwall(tspr, &tsiz, &walldist);
|
||||
|
||||
if (s != -1 && w != -1)
|
||||
if (s != -1)
|
||||
{
|
||||
wallspriteinfo_t *ws = &wsprinfo[s];
|
||||
|
||||
ws->wall = w;
|
||||
|
||||
if (w != -1)
|
||||
{
|
||||
ws->wdist = walldist;
|
||||
ws->wrev = wallchanged[w];
|
||||
ws->srev = spritechanged[s];
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (s != -1)
|
||||
walldist = wsprinfo[s].wdist;
|
||||
|
||||
|
|
Loading…
Reference in a new issue