Workaround for Forge 1.12.2 crashing
This commit is contained in:
1 parent
2c8067dc21
commit
1c91691d96
1 file changed
+8
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user