mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/WebGL: Specifically request ANGLE Metal backend on macOS
This commit is contained in:
parent
0c2dd57d62
commit
2a11670ef0
Notes:
github-actions[bot]
2025-06-09 21:41:55 +00:00
Author: https://github.com/Lubrsi
Commit: 2a11670ef0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4056
Reviewed-by: https://github.com/ADKaster
1 changed files with 7 additions and 1 deletions
|
@ -83,7 +83,13 @@ static EGLConfig get_egl_config(EGLDisplay display)
|
|||
OwnPtr<OpenGLContext> OpenGLContext::create(NonnullRefPtr<Gfx::SkiaBackendContext> skia_backend_context, WebGLVersion webgl_version)
|
||||
{
|
||||
#ifdef AK_OS_MACOS
|
||||
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
EGLAttrib display_attributes[] = {
|
||||
EGL_PLATFORM_ANGLE_TYPE_ANGLE,
|
||||
EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE,
|
||||
EGL_NONE,
|
||||
};
|
||||
|
||||
EGLDisplay display = eglGetPlatformDisplay(EGL_PLATFORM_ANGLE_ANGLE, reinterpret_cast<void*>(EGL_DEFAULT_DISPLAY), display_attributes);
|
||||
if (display == EGL_NO_DISPLAY) {
|
||||
dbgln("Failed to get EGL display");
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue