Disabled Dx11 FG on upscaler change

This commit is contained in:
cdozdil
2026-07-01 21:43:16 +03:00
parent 265794702d
commit e1b4bcff75
2 changed files with 7 additions and 2 deletions
@@ -123,6 +123,12 @@ bool FeatureProvider_Dx11::ChangeFeature(Upscaler upscaler, ID3D11Device* device
// first release everything
if (contextData->changeBackendCounter == 1)
{
if (state.currentFG != nullptr && state.activeFgInput == FGInput::Upscaler)
{
state.fgChanged = true;
state.clearCapturedHudlesses = true;
}
if (contextData->feature != nullptr)
{
LOG_INFO("changing backend to {0}", UpscalerDisplayName(state.newBackend));
@@ -114,9 +114,8 @@ bool FeatureProvider_Dx12::ChangeFeature(Upscaler upscaler, ID3D12Device* device
// first release everything
if (contextData->changeBackendCounter == 1)
{
if (state.currentFG != nullptr && state.currentFG->IsActive() && state.activeFgInput == FGInput::Upscaler)
if (state.currentFG != nullptr && state.activeFgInput == FGInput::Upscaler)
{
state.currentFG->DestroyFGContext();
state.fgChanged = true;
state.clearCapturedHudlesses = true;
}