Răsfoiți Sursa

Setting the resolution to match the old prevents calling reshape (#2290)

Toni Helenius 1 an în urmă
părinte
comite
104e19e308

+ 0 - 2
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java

@@ -298,8 +298,6 @@ public abstract class LwjglWindow extends LwjglContext implements Runnable {
             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");