From 4716e99df12ab5bfcaade881774e3b07e8e35450 Mon Sep 17 00:00:00 2001 From: artdeell Date: Sat, 28 Jan 2023 14:36:18 +0300 Subject: [PATCH] Don't call Display.create in AWTGLCanvas constructor (fixes Minecraft 1.2.1-1.2.4) --- jre_lwjgl3glfw/src/main/java/org/lwjgl/opengl/AWTGLCanvas.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jre_lwjgl3glfw/src/main/java/org/lwjgl/opengl/AWTGLCanvas.java b/jre_lwjgl3glfw/src/main/java/org/lwjgl/opengl/AWTGLCanvas.java index e97e97de0..797b6821e 100644 --- a/jre_lwjgl3glfw/src/main/java/org/lwjgl/opengl/AWTGLCanvas.java +++ b/jre_lwjgl3glfw/src/main/java/org/lwjgl/opengl/AWTGLCanvas.java @@ -79,7 +79,8 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener, } public AWTGLCanvas() throws LWJGLException { - Display.create(); + System.out.println("AWTGLCanvas constructor called on thread:"+Thread.currentThread().getName()); + //Display.create(); } public AWTGLCanvas(PixelFormat pixel_format) throws LWJGLException {