Fix FSRFG version switching when FG is not active

Slopped.
This commit is contained in:
FakeMichau committed 2026-10-25 15:07:46 +01:00
1 parent 7937e47377
commit 8feb5d0ca2
2 files changed
+11 -2

No files matched your search

+4
View File
@@ -1553,6 +1553,10 @@ void FSRFG_Dx12::EvaluateState(ID3D12Device* device, FG_Constants& fgConstants)
Hudfix_Dx11::ResetCounters();
}
// The change flags are cleared below, so a pending recreation (e.g. FFX FG version) must happen now
if (State::Instance().scChanged)
DestroyFGContext();
ReleaseResourceCopies();
}
+7 -2
View File
@@ -691,9 +691,14 @@ void FSRFG_Vk::EvaluateState(FG_Constants& fgConstants)
DestroyFGContext();
}
}
else if (IsActive())
else
{
Deactivate();
if (IsActive())
Deactivate();
// The change flags are cleared below, so a pending recreation (e.g. FFX FG version) must happen now
if (state.scChanged)
DestroyFGContext();
}
if (state.fgChanged)