Fix instant crash on embedded from recent nested resize work.

This commit is contained in:
Pierre-Loup A. Griffais 2020-01-20 23:47:55 +00:00
parent 99af917abc
commit 74143121cd

View file

@ -1781,7 +1781,7 @@ steamcompmgr_main (int argc, char **argv)
} }
currentOutputWidth = g_nOutputWidth; currentOutputWidth = g_nOutputWidth;
currentOutputHeight = g_nOutputWidth; currentOutputHeight = g_nOutputHeight;
XGrabServer (dpy); XGrabServer (dpy);
@ -2095,9 +2095,16 @@ steamcompmgr_main (int argc, char **argv)
if ( currentOutputWidth != g_nOutputWidth || if ( currentOutputWidth != g_nOutputWidth ||
currentOutputHeight != g_nOutputHeight ) currentOutputHeight != g_nOutputHeight )
{ {
bool bRet = vulkan_remake_swapchain(); if ( BIsNested() == true )
{
bool bRet = vulkan_remake_swapchain();
assert( bRet == true ); assert( bRet == true );
}
else
{
// Remake output images if we ever care about resizing there
}
currentOutputWidth = g_nOutputWidth; currentOutputWidth = g_nOutputWidth;
currentOutputHeight = g_nOutputHeight; currentOutputHeight = g_nOutputHeight;