only dispose video textures if they have been created

cosmonaut 2023-12-15 10:02:40 -08:00
parent bba64c1796
commit 95baaf3a91
1 changed files with 4 additions and 4 deletions

View File

@ -318,10 +318,10 @@ namespace MoonWorks.Video
{
Unload();
RenderTexture.Dispose();
yTexture.Dispose();
uTexture.Dispose();
vTexture.Dispose();
RenderTexture?.Dispose();
yTexture?.Dispose();
uTexture?.Dispose();
vTexture?.Dispose();
}
}
base.Dispose(disposing);