mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-21 14:41:30 +00:00
Re-enabled SK + FGOutput fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user