GPU: Pass the new window size when resizing the swapchain for d3d12 (#10665)
This commit is contained in:
parent
1751e127c8
commit
2c0ffdc6d5
@ -6109,8 +6109,8 @@ static bool D3D12_INTERNAL_ResizeSwapchainIfNeeded(
|
|||||||
HRESULT res = IDXGISwapChain_ResizeBuffers(
|
HRESULT res = IDXGISwapChain_ResizeBuffers(
|
||||||
windowData->swapchain,
|
windowData->swapchain,
|
||||||
0, // Keep buffer count the same
|
0, // Keep buffer count the same
|
||||||
swapchainDesc.BufferDesc.Width,
|
w,
|
||||||
swapchainDesc.BufferDesc.Height,
|
h,
|
||||||
DXGI_FORMAT_UNKNOWN, // Keep the old format
|
DXGI_FORMAT_UNKNOWN, // Keep the old format
|
||||||
renderer->supportsTearing ? DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0);
|
renderer->supportsTearing ? DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0);
|
||||||
ERROR_CHECK_RETURN("Could not resize swapchain buffers", 0)
|
ERROR_CHECK_RETURN("Could not resize swapchain buffers", 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user