From 2cecb8bbdbafe0c42e9d57d971f812f7d31f6b6a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 8 Sep 2020 11:40:54 +1000 Subject: [PATCH] GPU/Vulkan: End render pass in ClearDisplay() Fixes crash on Mesa/radv. --- src/core/gpu_hw_vulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/gpu_hw_vulkan.cpp b/src/core/gpu_hw_vulkan.cpp index 5f1a31dcc..a9c44b697 100644 --- a/src/core/gpu_hw_vulkan.cpp +++ b/src/core/gpu_hw_vulkan.cpp @@ -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);