mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
Let the temporary vissprite be stack local
This commit is contained in:
parent
66c4bc1fee
commit
c5c032911c
1 changed files with 3 additions and 2 deletions
|
@ -1294,7 +1294,8 @@ void R_DrawPSprite (pspdef_t* psp, int pspnum, AActor *owner, fixed_t sx, fixed_
|
||||||
WORD flip;
|
WORD flip;
|
||||||
FTexture* tex;
|
FTexture* tex;
|
||||||
vissprite_t* vis;
|
vissprite_t* vis;
|
||||||
static vissprite_t avis[NUMPSPRITES+1];
|
static vissprite_t avis[NUMPSPRITES];
|
||||||
|
vissprite_t tempvis;
|
||||||
bool noaccel;
|
bool noaccel;
|
||||||
|
|
||||||
assert(pspnum >= 0 && pspnum < NUMPSPRITES);
|
assert(pspnum >= 0 && pspnum < NUMPSPRITES);
|
||||||
|
@ -1338,7 +1339,7 @@ void R_DrawPSprite (pspdef_t* psp, int pspnum, AActor *owner, fixed_t sx, fixed_
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// store information in a vissprite
|
// store information in a vissprite
|
||||||
vis = &avis[NUMPSPRITES];
|
vis = &tempvis;
|
||||||
vis->renderflags = owner->renderflags;
|
vis->renderflags = owner->renderflags;
|
||||||
vis->floorclip = 0;
|
vis->floorclip = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue