mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/WebGL: Specifically request ANGLE Metal backend on macOS
This commit is contained in:
parent
0c2dd57d62
commit
2a11670ef0
|
|
@ -83,7 +83,13 @@ static EGLConfig get_egl_config(EGLDisplay display)
|
||||||
OwnPtr<OpenGLContext> OpenGLContext::create(NonnullRefPtr<Gfx::SkiaBackendContext> skia_backend_context, WebGLVersion webgl_version)
|
OwnPtr<OpenGLContext> OpenGLContext::create(NonnullRefPtr<Gfx::SkiaBackendContext> skia_backend_context, WebGLVersion webgl_version)
|
||||||
{
|
{
|
||||||
#ifdef AK_OS_MACOS
|
#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) {
|
if (display == EGL_NO_DISPLAY) {
|
||||||
dbgln("Failed to get EGL display");
|
dbgln("Failed to get EGL display");
|
||||||
return {};
|
return {};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user