1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

vulkan: Fix window resize race condition when doing flip

This commit is contained in:
kd-11 2017-10-09 19:34:54 +03:00
parent 20ad9a13b8
commit 1d375cb13c

View File

@ -2293,10 +2293,13 @@ void VKGSRender::flip(int buffer)
bool resize_screen = false;
if (m_client_height != m_frame->client_height() ||
m_client_width != m_frame->client_width())
const auto frame_width = m_frame->client_width();
const auto frame_height = m_frame->client_height();
if (m_client_height != frame_height ||
m_client_width != frame_width)
{
if (!!m_frame->client_height() && !!m_frame->client_width())
if (!!frame_width && !!frame_height)
resize_screen = true;
}
@ -2340,7 +2343,7 @@ void VKGSRender::flip(int buffer)
coordi aspect_ratio;
sizei csize = { m_frame->client_width(), m_frame->client_height() };
sizei csize = { frame_width, frame_height };
sizei new_size = csize;
if (!g_cfg.video.stretch_to_display_area)