From 6deb9d3072d96cc0624f0f877473c9e893fd1827 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 8 Dec 2023 14:33:05 +1000 Subject: [PATCH] D3D12Device: Fix incorrect RP end in CommitClear() --- src/util/d3d12_texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/d3d12_texture.cpp b/src/util/d3d12_texture.cpp index 48600f7ac..19d21c116 100644 --- a/src/util/d3d12_texture.cpp +++ b/src/util/d3d12_texture.cpp @@ -553,7 +553,8 @@ void D3D12Texture::CommitClear() return; D3D12Device& dev = D3D12Device::GetInstance(); - dev.EndRenderPass(); + if (dev.InRenderPass()) + dev.EndRenderPass(); ActuallyCommitClear(dev.GetCommandList()); }