From 570498ee77505d44654fdbc97d094ae429323379 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 13 Feb 2025 17:01:07 -0500 Subject: pke: track resize events This should probably be replaced with a better solution, but for now it works (1 tick late). --- src/window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 33a9115..f356221 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2907,6 +2907,7 @@ void DetermineMonitor() { } void RecreateSwapchain() { + pkeRuntime.graphics.resize_index += 1; int width, height = 0; glfwGetFramebufferSize(window, &width, &height); while (width == 0 || height == 0) { -- cgit v1.2.3