Skip to content

Commit

Permalink
Update gl_bridge.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirosakiMio committed Dec 26, 2024
1 parent b6fbddd commit 9fa810f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions FCLauncher/src/main/jni/pojav/ctxbridges/gl_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ gl_render_window_t* gl_init_context(gl_render_window_t *share) {

{
EGLBoolean bindResult;
// if (!strcmp(getenv("POJAV_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);
if (strncmp(getenv("POJAV_RENDERER"), "opengles3_desktopgl", 19) == 0) {
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);
}
if (!bindResult) printf("EGLBridge: bind failed: %p\n", eglGetError_p());
}

Expand Down

0 comments on commit 9fa810f

Please sign in to comment.