Fix for ResizeBuffers1 bracket error

This commit is contained in:
cdozdil
2026-05-18 11:39:42 +03:00
parent d675411c47
commit e574cd46ff
2 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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
+15 -15
View File
@@ -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