Skip to content

Commit

Permalink
修复[LTW]: 使用OPENGL_ES_API
Browse files Browse the repository at this point in the history
  • Loading branch information
Vera-Firefly committed Oct 8, 2024
1 parent 90ee40c commit 5826a6f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,8 @@ gl_render_window_t* gl_init_context(gl_render_window_t *share) {

{
EGLBoolean bindResult;
if (!strcmp(getenv("POJAV_BETA_RENDERER"), "opengles3_ltw"))
{
printf("EGLBridge: Binding to desktop OpenGL\n");
bindResult = eglBindAPI_p(EGL_OPENGL_API);
}
else {
printf("EGLBridge: Binding to OpenGL ES\n");
bindResult = eglBindAPI_p(EGL_OPENGL_ES_API);
}
printf("EGLBridge: Binding to OpenGL ES\n");
bindResult = eglBindAPI_p(EGL_OPENGL_ES_API);
if (!bindResult) printf("EGLBridge: bind failed: %p\n", eglGetError_p());
}

Expand Down

0 comments on commit 5826a6f

Please sign in to comment.