mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +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)
|
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();
|
||||||
|
|
Loading…
Reference in a new issue