Fix instant crash on embedded from recent nested resize work.
This commit is contained in:
parent
99af917abc
commit
74143121cd
1 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue