Fix: stack queue check
Now explicitly check the caller class
This commit is contained in:
1 parent
a8b137323c
commit
2ae408f5dd
3 files changed
+4
-4
No files matched your search
@@ -783,7 +783,8 @@ public class GLFW
|
||||
if (!isGLFWReady) {
|
||||
mGLFWInitialTime = (double) System.nanoTime();
|
||||
long __functionAddress = Functions.Init;
|
||||
isGLFWReady = invokeI(__functionAddress) != 0;
|
||||
boolean isCalledFromLWJGLX = new Throwable().getStackTrace()[1].getClassName().equals("org.lwjgl.Sys");
|
||||
isGLFWReady = invokeI(!isCalledFromLWJGLX, __functionAddress) != 0;
|
||||
}
|
||||
return isGLFWReady;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user