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) if (Canvas != NULL)
{ {
delete Canvas; delete Canvas;
Canvas = nullptr;
} }
if (CanvasBgra != NULL) if (CanvasBgra != NULL)
{ {
delete CanvasBgra; delete CanvasBgra;
CanvasBgra = nullptr;
} }
FTexture::Unload(); FTexture::Unload();