From 84c02a1110edea06c73c06fcebed7b3cd62b57e7 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Sun, 26 Feb 2023 18:14:41 +0100 Subject: [PATCH] ExecuteCommandBuffer needs to be done last, otherwise the commands to release temporary RTs won't be executed and they'll be cleared on the next frame. Oops. --- Assets/Scripts/Fsr2Context.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Fsr2Context.cs b/Assets/Scripts/Fsr2Context.cs index 3e5c2c1..84cc779 100644 --- a/Assets/Scripts/Fsr2Context.cs +++ b/Assets/Scripts/Fsr2Context.cs @@ -187,9 +187,9 @@ namespace FidelityFX _resourceFrameIndex = (_resourceFrameIndex + 1) % MaxQueuedFrames; - Graphics.ExecuteCommandBuffer(_commandBuffer); - Fsr2Pipeline.UnregisterResources(_commandBuffer); + + Graphics.ExecuteCommandBuffer(_commandBuffer); } public void GenerateReactiveMask(Fsr2.GenerateReactiveDescription dispatchParams)