Skip to content

Commit 5550d94

Browse files
[ANGLE] Support EGL_PLATFORM_WAYLAND_EXT extension
WebGL fails to initialize EGL display with followingn error: ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: Failed to get system egl display
1 parent 1c9c32e commit 5550d94

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/egl/FunctionsEGL.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ bool IsValidPlatformTypeForPlatformDisplayConnection(EGLAttrib platformType)
4343
switch (platformType)
4444
{
4545
case EGL_PLATFORM_SURFACELESS_MESA:
46+
case EGL_PLATFORM_WAYLAND_EXT:
4647
return true;
4748
default:
4849
break;
@@ -420,6 +421,10 @@ EGLDisplay FunctionsEGL::getPlatformDisplay(EGLAttrib platformType,
420421
if (!hasExtension("EGL_MESA_platform_surfaceless"))
421422
return EGL_NO_DISPLAY;
422423
break;
424+
case EGL_PLATFORM_WAYLAND_EXT:
425+
if (!hasExtension("EGL_EXT_platform_wayland"))
426+
return EGL_NO_DISPLAY;
427+
break;
423428
default:
424429
UNREACHABLE();
425430
return EGL_NO_DISPLAY;

0 commit comments

Comments
 (0)