From 43171fe1e7cdf51af7dc48db335d0656a330b5fe Mon Sep 17 00:00:00 2001 From: Jesus Rodriguez Valencia Date: Mon, 19 Apr 2021 00:22:20 +0200 Subject: [PATCH] Adding proper release of texture when camera is disabled --- OfCourseIStillLoveYou/TrackingCamera.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OfCourseIStillLoveYou/TrackingCamera.cs b/OfCourseIStillLoveYou/TrackingCamera.cs index c09ddb3..3871d39 100644 --- a/OfCourseIStillLoveYou/TrackingCamera.cs +++ b/OfCourseIStillLoveYou/TrackingCamera.cs @@ -381,6 +381,7 @@ public void Disable() { Enabled = false; StreamingEnabled = false; + this.TargetCamRenderTexture.Release(); foreach (var camera in _cameras) if (camera != null)