Update GL4ES link missing framework
This commit is contained in:
1 parent
6a651d7f05
commit
e42f611458
2 files changed
+12
-10
No files matched your search
+12
-10
@@ -47,15 +47,6 @@ JNIEXPORT void JNICALL Java_net_kdt_pojavlaunch_utils_JREUtils_saveGLContext(JNI
|
||||
debug("OpenGLES context is NULL...");
|
||||
assert(CURR_GL_CONTEXT != NULL);
|
||||
}
|
||||
assert(makeCurrentContext(CURR_GL_CONTEXT));
|
||||
debug("makeCurrent success");
|
||||
|
||||
void *libGL = dlopen("libGL.dylib", RTLD_GLOBAL);
|
||||
debug("libGL = %p", libGL);
|
||||
gl4esInitialize_func *gl4esInitialize = (gl4esInitialize_func*) dlsym(libGL, "initialize_gl4es");
|
||||
debug("initialize_gl4es = %p", gl4esInitialize);
|
||||
gl4esInitialize();
|
||||
debug("GL4ES init success");
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglGetCurrentContext(JNIEnv* env, jclass clazz) {
|
||||
@@ -68,8 +59,19 @@ 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 = 1; // makeCurrentContext(CURR_GL_CONTEXT);
|
||||
|
||||
jboolean ret = makeCurrentContext(CURR_GL_CONTEXT);
|
||||
debug("ES2Bridge: makeCurrent() returns %d\n", ret);
|
||||
|
||||
void *libGL = dlopen("libGL.dylib", RTLD_GLOBAL);
|
||||
debug("libGL = %p", libGL);
|
||||
|
||||
gl4esInitialize_func *gl4esInitialize = (gl4esInitialize_func*) dlsym(libGL, "initialize_gl4es");
|
||||
debug("initialize_gl4es = %p", gl4esInitialize);
|
||||
|
||||
gl4esInitialize();
|
||||
debug("GL4ES init success");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user