mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU/Vulkan: End render pass in ClearDisplay()
Fixes crash on Mesa/radv.
This commit is contained in:
parent
1e6d50e4dc
commit
2cecb8bbdb
|
@ -909,6 +909,7 @@ void GPU_HW_Vulkan::SetScissorFromDrawingArea()
|
||||||
void GPU_HW_Vulkan::ClearDisplay()
|
void GPU_HW_Vulkan::ClearDisplay()
|
||||||
{
|
{
|
||||||
GPU_HW::ClearDisplay();
|
GPU_HW::ClearDisplay();
|
||||||
|
EndRenderPass();
|
||||||
|
|
||||||
VkCommandBuffer cmdbuf = g_vulkan_context->GetCurrentCommandBuffer();
|
VkCommandBuffer cmdbuf = g_vulkan_context->GetCurrentCommandBuffer();
|
||||||
m_display_texture.TransitionToLayout(cmdbuf, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
|
m_display_texture.TransitionToLayout(cmdbuf, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
|
||||||
|
|
Loading…
Reference in a new issue