Skip to content

Commit

Permalink
Adding proper release of texture when camera is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodrigv committed Apr 18, 2021
1 parent d11d89b commit 43171fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OfCourseIStillLoveYou/TrackingCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ public void Disable()
{
Enabled = false;
StreamingEnabled = false;
this.TargetCamRenderTexture.Release();

foreach (var camera in _cameras)
if (camera != null)
Expand Down

0 comments on commit 43171fe

Please sign in to comment.