Fix: update ANGLE and default binding to desktop

Updated ANGLE to
https://github.com/google/angle/commit/6024e9c05548480c3b2ea42836a11250
9a549a95. It sucks that newer commit completely removed Desktop GL
frontend (as well as no LTW since GLES 3.x aren't gonna be implemented
anytime soon)
Misc: exclude simulator and Mac Catalyst from get-task-allow
enforcement.
This commit is contained in:
khanhduytran0 committed 2024-12-11 19:22:03 +07:00
1 parent 16642e77b3
commit fb75288831
6 files changed
+4 -9

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@
} else {
[self enableJITWithAltKit];
}
} else {
} else if (!NSProcessInfo.processInfo.macCatalystApp && !getenv("SIMULATOR_DEVICE_NAME")) {
[self displayProgress:localize(@"login.jit.fail", nil)];
[self displayProgress:nil];
UIAlertController* alert = [UIAlertController alertControllerWithTitle:localize(@"login.jit.fail.title", nil)
+3 -8
View File
@@ -61,7 +61,7 @@ gl_render_window_t* gl_init_context(gl_render_window_t *share) {
EGL_ALPHA_SIZE, 8,
EGL_DEPTH_SIZE, 24,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT|EGL_PBUFFER_BIT,
EGL_RENDERABLE_TYPE, angleDesktopGL ? EGL_OPENGL_BIT : EGL_OPENGL_ES3_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT,
EGL_NONE
};
@@ -82,13 +82,8 @@ gl_render_window_t* gl_init_context(gl_render_window_t *share) {
}
EGLBoolean bindResult;
if (angleDesktopGL) {
NSDebugLog(@"EGLBridge: Binding to desktop OpenGL");
bindResult = handle.eglBindAPI(EGL_OPENGL_API);
} else {
NSDebugLog(@"EGLBridge: Binding to OpenGL ES");
bindResult = handle.eglBindAPI(EGL_OPENGL_ES_API);
}
NSDebugLog(@"EGLBridge: Binding to desktop OpenGL (regardless of renderer)");
bindResult = handle.eglBindAPI(EGL_OPENGL_API);
if (!bindResult) NSDebugLog(@"EGLBridge: bind failed: %p\n", handle.eglGetError());
bundle->surface = handle.eglCreateWindowSurface(g_EglDisplay, bundle->config, (__bridge EGLNativeWindowType)SurfaceViewController.surface.layer, NULL);
Binary file not shown.