From 98ef399c7907daca67cfd15efcb930ef212853da Mon Sep 17 00:00:00 2001 From: cdozdil Date: Fri, 12 Jun 2026 18:08:22 +0300 Subject: [PATCH] Re-enabled SK + FGOutput fix --- OptiScaler/wrapped/wrapped_swapchain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OptiScaler/wrapped/wrapped_swapchain.cpp b/OptiScaler/wrapped/wrapped_swapchain.cpp index 8714a53f..cfa1d0eb 100644 --- a/OptiScaler/wrapped/wrapped_swapchain.cpp +++ b/OptiScaler/wrapped/wrapped_swapchain.cpp @@ -802,7 +802,7 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers(UINT BufferCount skSC->Release(); LOG_DEBUG("Found SK swapchain, skip releasing backbuffers of main swapchain"); } - else + else { LOG_DEBUG("Releasing backbuffers, count: {}", desc.BufferCount); @@ -1168,9 +1168,8 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers1(UINT BufferCoun WaitForGPUIdle(_device); // Release swapchain backbuffers to prevent errors when resizing - /* if (State::Instance().activeFgOutput != FGOutput::NoFG && State::Instance().activeFgOutput != FGOutput::Nukems && - State::Instance().activeFgInput != FGInput::Upscaler && State::Instance().currentFG != nullptr) + State::Instance().currentFG != nullptr) { IDXGISwapChain* skSC = nullptr; if (_real->QueryInterface(IID_IUnwrappedDXGISwapChain, (void**) &skSC) == S_OK && skSC != nullptr) @@ -1200,6 +1199,7 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers1(UINT BufferCoun result = _real3->ResizeBuffers(BufferCount, Width, Height, Format, SwapChainFlags); } } + /* else { LOG_DEBUG("Releasing backbuffers, count: {}", desc.BufferCount); @@ -1232,10 +1232,10 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers1(UINT BufferCoun } } } + */ std::this_thread::sleep_for(std::chrono::milliseconds(100)); } - */ #ifdef DXGI_DEBUG_ENABLED ReportDXGILiveObjects();