From 78b9e501b51f24adef898ace4acaaeedab849bad Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Sat, 16 Mar 2019 17:09:27 +0900 Subject: [PATCH] Release temporary RT safety --- Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs index 50e970f..4ece7d1 100644 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs @@ -553,6 +553,7 @@ namespace Coffee.UIExtensions { if (tmpRT) { + tmpRT.Release(); RenderTexture.ReleaseTemporary(tmpRT); tmpRT = null; }