Browse Source

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.

fsr3.1.1
Nico de Poel 1 year ago
parent
commit
a1a037a8ec
  1. 2
      Runtime/FSR2/Fsr2Context.cs

2
Runtime/FSR2/Fsr2Context.cs

@ -212,7 +212,7 @@ namespace FidelityFX.FSR2
// Auto exposure always used to track luma changes in locking logic // Auto exposure always used to track luma changes in locking logic
commandBuffer.SetRenderTarget(_resources.AutoExposure); 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 // Reset atomic counter to 0
commandBuffer.SetRenderTarget(_resources.SpdAtomicCounter); commandBuffer.SetRenderTarget(_resources.SpdAtomicCounter);

Loading…
Cancel
Save