mirror of https://github.com/encounter/SDL.git
d3d12: actually execute the pending commands before processing resize
This makes sure all the resources are in the expected state Fix the D3D12 case in https://github.com/libsdl-org/SDL/issues/6376
This commit is contained in:
parent
0b88e609bc
commit
df1bd07dee
|
@ -1285,8 +1285,7 @@ D3D12_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
|
||||||
D3D12_CPU_DESCRIPTOR_HANDLE rtvDescriptor;
|
D3D12_CPU_DESCRIPTOR_HANDLE rtvDescriptor;
|
||||||
|
|
||||||
/* Release resources in the current command list */
|
/* Release resources in the current command list */
|
||||||
D3D_CALL(data->commandList, Close);
|
D3D12_IssueBatch(data);
|
||||||
D3D12_ResetCommandList(data);
|
|
||||||
D3D_CALL(data->commandList, OMSetRenderTargets, 0, NULL, FALSE, NULL);
|
D3D_CALL(data->commandList, OMSetRenderTargets, 0, NULL, FALSE, NULL);
|
||||||
|
|
||||||
/* Release render targets */
|
/* Release render targets */
|
||||||
|
|
Loading…
Reference in New Issue