mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed memory leak with wipes set to pff.
In this case the start screen's texture wasn't destroyed.
This commit is contained in:
parent
22e8c57a59
commit
f007473a9f
1 changed files with 3 additions and 1 deletions
|
@ -638,7 +638,7 @@ CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||||
|
|
||||||
void D_Display ()
|
void D_Display ()
|
||||||
{
|
{
|
||||||
FTexture *wipe;
|
FTexture *wipe = nullptr;
|
||||||
int wipe_type;
|
int wipe_type;
|
||||||
sector_t *viewsec;
|
sector_t *viewsec;
|
||||||
|
|
||||||
|
@ -870,6 +870,8 @@ void D_Display ()
|
||||||
|
|
||||||
if (!wipe || NoWipe < 0 || wipe_type == wipe_None)
|
if (!wipe || NoWipe < 0 || wipe_type == wipe_None)
|
||||||
{
|
{
|
||||||
|
if (wipe != nullptr) delete wipe;
|
||||||
|
wipe = nullptr;
|
||||||
NetUpdate (); // send out any new accumulation
|
NetUpdate (); // send out any new accumulation
|
||||||
// normal update
|
// normal update
|
||||||
// draw ZScript UI stuff
|
// draw ZScript UI stuff
|
||||||
|
|
Loading…
Reference in a new issue