mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 07:36:45 +00:00
Fix for ResizeBuffers1 bracket error
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#define VER_MAJOR_VERSION 0
|
||||
#define VER_MINOR_VERSION 9
|
||||
#define VER_HOTFIX_VERSION 2
|
||||
#define VER_BUILD_NUMBER 1
|
||||
#define VER_BUILD_NUMBER 2
|
||||
|
||||
// #define VER_PRE_RELEASE
|
||||
|
||||
|
||||
@@ -1225,29 +1225,29 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers1(UINT BufferCoun
|
||||
}
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
#ifdef DXGI_DEBUG_ENABLED
|
||||
ReportDXGILiveObjects();
|
||||
ReportDXGILiveObjects();
|
||||
|
||||
#ifdef ENABLE_DEBUG_LAYER_DX12
|
||||
ReportD3D12LiveObjects(State::Instance().currentD3D12Device);
|
||||
ReportD3D12LiveObjects(State::Instance().currentD3D12Device);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (Config::Instance()->FGDontUseSwapchainBuffers.value_or_default())
|
||||
{
|
||||
ScopedSkipHeapCapture skipHeapCapture {};
|
||||
if (Config::Instance()->FGDontUseSwapchainBuffers.value_or_default())
|
||||
{
|
||||
ScopedSkipHeapCapture skipHeapCapture {};
|
||||
|
||||
_lastFlags = SwapChainFlags;
|
||||
result = _real3->ResizeBuffers1(BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask,
|
||||
ppPresentQueue);
|
||||
}
|
||||
else
|
||||
{
|
||||
_lastFlags = SwapChainFlags;
|
||||
result = _real3->ResizeBuffers1(BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask,
|
||||
ppPresentQueue);
|
||||
}
|
||||
_lastFlags = SwapChainFlags;
|
||||
result = _real3->ResizeBuffers1(BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask,
|
||||
ppPresentQueue);
|
||||
}
|
||||
else
|
||||
{
|
||||
_lastFlags = SwapChainFlags;
|
||||
result = _real3->ResizeBuffers1(BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask,
|
||||
ppPresentQueue);
|
||||
}
|
||||
|
||||
#ifdef DXGI_DEBUG_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user