VulkanDevice: Fix incorrect render pass end
This commit is contained in:
parent
e739c114a4
commit
4a906fd0a0
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue