Stills fixing LWJGLX window stuff

Attempt to get 1.13.2 and below works.
This commit is contained in:
Duy Tran Khanh committed 2021-02-16 20:40:22 +07:00
1 parent 3e425bbc36
commit 58d7216894
2 files changed
+9 -3

No files matched your search

@@ -635,7 +635,13 @@ public class GLFW
public static GLFWWindowProperties internalGetWindow(long window) {
GLFWWindowProperties win = mGLFWWindowMap.get(window);
if (win == null) {
throw new IllegalArgumentException("No window pointer found: " + window);
System.err.println("GLFW: No window pointer found: " + window);
win = mGLFWWindowMap.get(mainContext);
// throw new IllegalArgumentException("No window pointer found: " + window);
}
if (win == null) {
System.err.println("GLFW: Stills no window pointer found: " + window);
win = mGLFWWindowMap.valueAt(0);
}
return win;
}