From 5cadb88b96f7e0884754b7b2df22753e2078d6e5 Mon Sep 17 00:00:00 2001 From: Toni Helenius Date: Thu, 4 Jul 2024 00:10:59 +0300 Subject: [PATCH] Setting the resolution to match the old prevents calling reshape (#2290) --- .../src/main/java/com/jme3/system/lwjgl/LwjglWindow.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java index 4d92383b50..24a02bcd13 100644 --- a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java +++ b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java @@ -298,8 +298,6 @@ public void invoke(int error, long description) { requestWidth = videoMode.width(); requestHeight = videoMode.height(); } - oldFramebufferHeight = requestHeight; - oldFramebufferWidth = requestWidth; window = glfwCreateWindow(requestWidth, requestHeight, settings.getTitle(), monitor, NULL); if (window == NULL) { throw new RuntimeException("Failed to create the GLFW window");