VulkanDevice: Fix incorrect render pass end
This commit is contained in:
parent
e739c114a4
commit
4a906fd0a0
|
@ -427,7 +427,8 @@ void VulkanTexture::CommitClear()
|
|||
return;
|
||||
|
||||
VulkanDevice& dev = VulkanDevice::GetInstance();
|
||||
dev.EndRenderPass();
|
||||
if (dev.InRenderPass())
|
||||
dev.EndRenderPass();
|
||||
|
||||
CommitClear(dev.GetCurrentCommandBuffer());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue