瀏覽代碼

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

Toni Helenius 1 年之前
父節點
當前提交
104e19e308
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java

+ 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");