Update egl_bridge.c

This commit is contained in:
Duy Tran Khanh 2021-03-06 14:32:11 +07:00 committed by GitHub
parent 0602739102
commit 89d01cd1ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ Java_org_lwjgl_glfw_GLFW_nativeEglCreateContext(JNIEnv *env, jclass clazz, jlong
};
EGLContext* ctx = eglCreateContext(potatoBridge.eglDisplay, config, (void*)contextSrc, ctx_attribs);
if (potatoBridge.eglContext == NULL) potatoBridge.eglContext = ctx;
potatoBridge.eglContext = ctx;
printf("EGLBridge: Created CTX pointer = %p\n",ctx);
//(*env)->ThrowNew(env,(*env)->FindClass(env,"java/lang/Exception"),"Trace exception");