Back to main thread
This commit is contained in:
1 parent
06802c7077
commit
9d0901e8d0
2 files changed
+4
-4
No files matched your search
@@ -83,7 +83,7 @@ public final class Tools
|
||||
}
|
||||
}
|
||||
|
||||
new Thread(() -> { try {
|
||||
// new Thread(() -> { try {
|
||||
|
||||
URLClassLoader loader = new URLClassLoader(urlList.toArray(new URL[0]), Tools.class.getClassLoader());
|
||||
Class<?> clazz = loader.loadClass(versionInfo.mainClass);
|
||||
@@ -94,7 +94,7 @@ public final class Tools
|
||||
throw new RuntimeException(th);
|
||||
}
|
||||
|
||||
}).start();
|
||||
// }).start();
|
||||
|
||||
// JREUtils.launchJavaVM(javaArgList);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ JNIEXPORT void JNICALL Java_net_kdt_pojavlaunch_utils_JREUtils_saveGLContext(JNI
|
||||
}
|
||||
|
||||
// Clear current GL context to later set on another thread
|
||||
clearCurrentContext();
|
||||
// clearCurrentContext();
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglGetCurrentContext(JNIEnv* env, jclass clazz) {
|
||||
@@ -63,7 +63,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglInit(JNIEnv* env, j
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglMakeCurrent(JNIEnv* env, jclass clazz, jlong window) {
|
||||
debug("ES2Bridge: making current\n");
|
||||
|
||||
jboolean ret = makeCurrentContext(CURR_GL_CONTEXT);
|
||||
jboolean ret = 1; // makeCurrentContext(CURR_GL_CONTEXT);
|
||||
|
||||
void *libGL = dlopen("libGL.dylib", RTLD_GLOBAL);
|
||||
debug("libGL = %p", libGL);
|
||||
|
||||
Reference in new issue
Block a user