mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-11-07 22:42:45 +00:00
Fix FSRFG version switching when FG is not active
Slopped.
This commit is contained in:
1 parent
7937e47377
commit
8feb5d0ca2
2 files changed
+11
-2
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user