Skip to content

Commit 59d283d

Browse files
committed
Fix
1 parent 73e35cf commit 59d283d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/CustomTextureRenderer/Runtime/PluginTextureRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void Dispose()
120120
_rawTextureDataUpdateCallback = null;
121121
_customTextureUpdateCallback = null;
122122

123-
_targetTexture = null;
123+
UnityEngine.Object.Destroy(_targetTexture);
124124
_textureBufferPtr = IntPtr.Zero;
125125

126126
Marshal.FreeHGlobal(_textureUpdateParamsPtr);

0 commit comments

Comments
 (0)