mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-08 08:22:05 +00:00
Disabled Dx11 FG on upscaler change
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user