From 74143121cd98c0f67b9b530fe09ea09db1cfc3de Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Mon, 20 Jan 2020 23:47:55 +0000 Subject: [PATCH] Fix instant crash on embedded from recent nested resize work. --- src/steamcompmgr.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/steamcompmgr.c b/src/steamcompmgr.c index 573f9bb..fe7b93f 100644 --- a/src/steamcompmgr.c +++ b/src/steamcompmgr.c @@ -1781,7 +1781,7 @@ steamcompmgr_main (int argc, char **argv) } currentOutputWidth = g_nOutputWidth; - currentOutputHeight = g_nOutputWidth; + currentOutputHeight = g_nOutputHeight; XGrabServer (dpy); @@ -2095,9 +2095,16 @@ steamcompmgr_main (int argc, char **argv) if ( currentOutputWidth != g_nOutputWidth || currentOutputHeight != g_nOutputHeight ) { - bool bRet = vulkan_remake_swapchain(); - - assert( bRet == true ); + if ( BIsNested() == true ) + { + bool bRet = vulkan_remake_swapchain(); + + assert( bRet == true ); + } + else + { + // Remake output images if we ever care about resizing there + } currentOutputWidth = g_nOutputWidth; currentOutputHeight = g_nOutputHeight;