Handle unloading of canvas textures properly

https://forum.zdoom.org/viewtopic.php?t=56207
This commit is contained in:
alexey.lysiuk 2017-05-01 16:20:25 +03:00
parent b84f7bcada
commit dcded0e183

View file

@ -171,11 +171,13 @@ void FCanvasTexture::Unload ()
if (Canvas != NULL)
{
delete Canvas;
Canvas = nullptr;
}
if (CanvasBgra != NULL)
{
delete CanvasBgra;
CanvasBgra = nullptr;
}
FTexture::Unload();