From 36f2e7584258bea0b6d71aed7108f5afe11ea494 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Fri, 18 Jul 2025 13:55:07 -0500 Subject: cube: Fix wayland resize broken when extent is 0xFFFFFFFF This is a 'magic value' that shouldn't be allowed to overwrite the current window width & height. There is code to handle the value, but not everywhere it can come from. --- cube/cube.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'cube/cube.cpp') diff --git a/cube/cube.cpp b/cube/cube.cpp index 1522ba0c..a448ddab 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -955,8 +955,6 @@ void Demo::draw() { auto caps_result = gpu.getSurfaceCapabilitiesKHR(surface, &surfCapabilities); VERIFY(caps_result == vk::Result::eSuccess); if (surfCapabilities.currentExtent.width != width || surfCapabilities.currentExtent.height != height) { - width = surfCapabilities.currentExtent.width; - height = surfCapabilities.currentExtent.height; resize(); } } else if (present_result == vk::Result::eErrorSurfaceLostKHR) { -- cgit v1.2.3