mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
Handle unloading of canvas textures properly
https://forum.zdoom.org/viewtopic.php?t=56207
This commit is contained in:
parent
b84f7bcada
commit
dcded0e183
1 changed files with 2 additions and 0 deletions
|
@ -171,11 +171,13 @@ void FCanvasTexture::Unload ()
|
|||
if (Canvas != NULL)
|
||||
{
|
||||
delete Canvas;
|
||||
Canvas = nullptr;
|
||||
}
|
||||
|
||||
if (CanvasBgra != NULL)
|
||||
{
|
||||
delete CanvasBgra;
|
||||
CanvasBgra = nullptr;
|
||||
}
|
||||
|
||||
FTexture::Unload();
|
||||
|
|
Loading…
Reference in a new issue