mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 01:38:29 +12:00
Vulkan: Fix freeze when closing pad view (#435)
This commit is contained in:
parent
948460cad7
commit
138510106c
3 changed files with 56 additions and 36 deletions
|
@ -41,6 +41,12 @@ VulkanCanvas::~VulkanCanvas()
|
|||
{
|
||||
Unbind(wxEVT_PAINT, &VulkanCanvas::OnPaint, this);
|
||||
Unbind(wxEVT_SIZE, &VulkanCanvas::OnResize, this);
|
||||
|
||||
if(!m_is_main_window)
|
||||
{
|
||||
if(auto vulkan_renderer = VulkanRenderer::GetInstance())
|
||||
vulkan_renderer->StopUsingPadAndWait();
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanCanvas::OnPaint(wxPaintEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue