mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +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;
|
||||
FTexture* tex;
|
||||
vissprite_t* vis;
|
||||
static vissprite_t avis[NUMPSPRITES+1];
|
||||
static vissprite_t avis[NUMPSPRITES];
|
||||
vissprite_t tempvis;
|
||||
bool noaccel;
|
||||
|
||||
assert(pspnum >= 0 && pspnum < NUMPSPRITES);
|
||||
|
@ -1338,7 +1339,7 @@ void R_DrawPSprite (pspdef_t* psp, int pspnum, AActor *owner, fixed_t sx, fixed_
|
|||
return;
|
||||
|
||||
// store information in a vissprite
|
||||
vis = &avis[NUMPSPRITES];
|
||||
vis = &tempvis;
|
||||
vis->renderflags = owner->renderflags;
|
||||
vis->floorclip = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue