From a1a037a8ec24b495091726da0a3e248fdf273416 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Sat, 14 Dec 2024 21:06:28 +0100 Subject: [PATCH] Ported auto-exposure initialization fix from FSR 3.1 over to FSR 2.2. Fixes black screen flashes on history reset in OpenGL on Nvidia GPUs. --- Runtime/FSR2/Fsr2Context.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/FSR2/Fsr2Context.cs b/Runtime/FSR2/Fsr2Context.cs index 38d380b..5b0b238 100644 --- a/Runtime/FSR2/Fsr2Context.cs +++ b/Runtime/FSR2/Fsr2Context.cs @@ -212,7 +212,7 @@ namespace FidelityFX.FSR2 // Auto exposure always used to track luma changes in locking logic commandBuffer.SetRenderTarget(_resources.AutoExposure); - commandBuffer.ClearRenderTarget(false, true, new Color(0f, 1e8f, 0f, 0f)); + commandBuffer.ClearRenderTarget(false, true, new Color(0f, 1f, 0f, 0f)); // Reset atomic counter to 0 commandBuffer.SetRenderTarget(_resources.SpdAtomicCounter);