only dispose video textures if they have been created
parent
9d6e4de761
commit
086267ae4c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue