GPU/Vulkan: End render pass in ClearDisplay()

Fixes crash on Mesa/radv.
This commit is contained in:
Connor McLaughlin 2020-09-08 11:40:54 +10:00
parent 1e6d50e4dc
commit 2cecb8bbdb

View file

@ -909,6 +909,7 @@ void GPU_HW_Vulkan::SetScissorFromDrawingArea()
void GPU_HW_Vulkan::ClearDisplay()
{
GPU_HW::ClearDisplay();
EndRenderPass();
VkCommandBuffer cmdbuf = g_vulkan_context->GetCurrentCommandBuffer();
m_display_texture.TransitionToLayout(cmdbuf, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);