diff --git a/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java b/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java index 1398ada7..2cd30d5a 100644 --- a/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java +++ b/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java @@ -1056,10 +1056,14 @@ public class GLFW } public static void glfwSetWindowSize(long window, int width, int height) { - internalGetWindow(window).width = width; - internalGetWindow(window).height = height; - - System.out.println("GLFW: Set size for window " + window + ", width=" + width + ", height=" + height); + try { + internalGetWindow(window).width = width; + internalGetWindow(window).height = height; + System.out.println("GLFW: Set size for window " + window + ", width=" + width + ", height=" + height); + } catch (Throwable th) { + System.err.println("Unable to set window size for window " + window); + th.printStackTrace(); + } } public static void glfwShowWindow(long window) {