mirror of
https://github.com/stenzek/duckstation.git
synced 2026-11-17 03:24:23 +01:00
D3D12Device: End render pass when submitting command list
Texture uploads submit when the upload buffer is full, which could happen with a render pass still open.
This commit is contained in:
1 file changed
+3
-1
@@ -590,7 +590,9 @@ ID3D12GraphicsCommandList4* D3D12Device::GetInitCommandList()
|
||||
|
||||
void D3D12Device::SubmitCommandList(bool wait_for_completion)
|
||||
{
|
||||
DebugAssert(!InRenderPass());
|
||||
if (InRenderPass())
|
||||
EndRenderPass();
|
||||
|
||||
if (m_device_was_lost) [[unlikely]]
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user