[EGLBridge] Stills trying to get GLES multiple contexts to get Forge 1.14+ work

This commit is contained in:
khanhduytran0 2020-12-13 10:49:11 +07:00
parent 0168ede426
commit 01cdb9fff9

View File

@ -75,6 +75,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglMakeCurrent(JNIEnv*
};
if (potatoBridge.eglContext != EGL_NO_CONTEXT) {
eglMakeCurrent(potatoBridge.eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
potatoBridge.eglContextOld = potatoBridge.eglContext;
potatoBridge.eglContext = eglCreateContext(potatoBridge.eglDisplay, config, potatoBridge.eglContextOld, ctx_attribs);
} else {