mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 01:38:29 +12:00
Vulkan: Further swapchain code improvements. (#473)
This commit is contained in:
parent
a0e69ffbbd
commit
4d68446f14
7 changed files with 58 additions and 78 deletions
|
@ -56,15 +56,9 @@ void VulkanCanvas::OnPaint(wxPaintEvent& event)
|
|||
void VulkanCanvas::OnResize(wxSizeEvent& event)
|
||||
{
|
||||
const wxSize size = GetSize();
|
||||
if (size.GetWidth() == 0 || size.GetHeight() == 0)
|
||||
if (size.GetWidth() == 0 || size.GetHeight() == 0)
|
||||
return;
|
||||
|
||||
const wxRect refreshRect(size);
|
||||
RefreshRect(refreshRect, false);
|
||||
|
||||
if (g_renderer == nullptr)
|
||||
return;
|
||||
|
||||
auto vulkan_renderer = VulkanRenderer::GetInstance();
|
||||
vulkan_renderer->SetSwapchainTargetSize({size.x, size.y}, m_is_main_window);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue