mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
vulkan: Fix window resize race condition when doing flip
This commit is contained in:
parent
20ad9a13b8
commit
1d375cb13c
@ -2293,10 +2293,13 @@ void VKGSRender::flip(int buffer)
|
|||||||
|
|
||||||
bool resize_screen = false;
|
bool resize_screen = false;
|
||||||
|
|
||||||
if (m_client_height != m_frame->client_height() ||
|
const auto frame_width = m_frame->client_width();
|
||||||
m_client_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;
|
resize_screen = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2340,7 +2343,7 @@ void VKGSRender::flip(int buffer)
|
|||||||
|
|
||||||
coordi aspect_ratio;
|
coordi aspect_ratio;
|
||||||
|
|
||||||
sizei csize = { m_frame->client_width(), m_frame->client_height() };
|
sizei csize = { frame_width, frame_height };
|
||||||
sizei new_size = csize;
|
sizei new_size = csize;
|
||||||
|
|
||||||
if (!g_cfg.video.stretch_to_display_area)
|
if (!g_cfg.video.stretch_to_display_area)
|
||||||
|
Loading…
Reference in New Issue
Block a user