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:
Stenzek committed 2026-10-19 16:45:14 +10:00
1 parent 8f16f93252
commit fe18bfa3f6
1 file changed
+3 -1
+3 -1
View File
@@ -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;