VulkanDevice: Fix incorrect render pass end

This commit is contained in:
Stenzek 2023-11-05 21:14:15 +10:00
parent e739c114a4
commit 4a906fd0a0
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -427,6 +427,7 @@ void VulkanTexture::CommitClear()
return; return;
VulkanDevice& dev = VulkanDevice::GetInstance(); VulkanDevice& dev = VulkanDevice::GetInstance();
if (dev.InRenderPass())
dev.EndRenderPass(); dev.EndRenderPass();
CommitClear(dev.GetCurrentCommandBuffer()); CommitClear(dev.GetCurrentCommandBuffer());