We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e35cf commit 59d283dCopy full SHA for 59d283d
Assets/CustomTextureRenderer/Runtime/PluginTextureRenderer.cs
@@ -120,7 +120,7 @@ public void Dispose()
120
_rawTextureDataUpdateCallback = null;
121
_customTextureUpdateCallback = null;
122
123
- _targetTexture = null;
+ UnityEngine.Object.Destroy(_targetTexture);
124
_textureBufferPtr = IntPtr.Zero;
125
126
Marshal.FreeHGlobal(_textureUpdateParamsPtr);
0 commit comments