Skip to content

Commit

Permalink
Merge pull request #235 from mhusinsky/master
Browse files Browse the repository at this point in the history
Fix for exception on deletion of DynamicTexture2DColorNode
  • Loading branch information
mrvux committed Dec 30, 2015
2 parents 1f1362f + 1693da0 commit ce0fc4d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ public void Destroy(IPluginIO pin, DX11RenderContext context, bool force)
#region IDisposable Members
public void Dispose()
{
this.FTextureOutput[0].Dispose();
if (this.FTextureOutput.SliceCount > 0)
{
if (this.FTextureOutput[0] != null)
{
this.FTextureOutput[0].Dispose();
}
}
}
#endregion
}
Expand Down

0 comments on commit ce0fc4d

Please sign in to comment.