Skip to content

Commit f118cf2

Browse files
authored
RenderTextureを適切に破棄するよう修正 (#117)
1 parent 4fbe507 commit f118cf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dev/Plugin/Assets/Effekseer/Scripts/EffekseerRenderer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ public void Release()
406406
if (renderTexture != null)
407407
{
408408
renderTexture.Release();
409+
UnityEngine.Object.Destroy(renderTexture);
409410
renderTexture = null;
410411
ptr = IntPtr.Zero;
411412
}
@@ -453,6 +454,7 @@ public void Release()
453454
if (renderTexture != null)
454455
{
455456
renderTexture.Release();
457+
UnityEngine.Object.Destroy(renderTexture);
456458
renderTexture = null;
457459
ptr = IntPtr.Zero;
458460
}

0 commit comments

Comments
 (0)