GPUDevice: Fix race on resize in GL/Vulkan
This commit is contained in:
@ -2213,6 +2213,9 @@ bool VulkanDevice::UpdateWindow()
|
||||
|
||||
void VulkanDevice::ResizeWindow(s32 new_window_width, s32 new_window_height, float new_window_scale)
|
||||
{
|
||||
if (!m_swap_chain)
|
||||
return;
|
||||
|
||||
if (m_swap_chain->GetWidth() == static_cast<u32>(new_window_width) &&
|
||||
m_swap_chain->GetHeight() == static_cast<u32>(new_window_height))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user