only dispose video textures if they have been created
parent
bba64c1796
commit
95baaf3a91
|
@ -318,10 +318,10 @@ namespace MoonWorks.Video
|
||||||
{
|
{
|
||||||
Unload();
|
Unload();
|
||||||
|
|
||||||
RenderTexture.Dispose();
|
RenderTexture?.Dispose();
|
||||||
yTexture.Dispose();
|
yTexture?.Dispose();
|
||||||
uTexture.Dispose();
|
uTexture?.Dispose();
|
||||||
vTexture.Dispose();
|
vTexture?.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
|
|
Loading…
Reference in New Issue