Blob Blame History Raw
Index: /Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp
===================================================================
--- /Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp	(revision 260243)
+++ /Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp	(revision 260244)
@@ -93,5 +93,10 @@
 #if USE(WPE_RENDERER)
     if (!glImageTargetTexture2D) {
-        if (!wpe_fdo_initialize_for_egl_display(PlatformDisplay::sharedDisplay().eglDisplay()))
+        auto* eglDisplay = PlatformDisplay::sharedDisplay().eglDisplay();
+        const char* extensions = eglQueryString(eglDisplay, EGL_EXTENSIONS);
+        if (!GLContext::isExtensionSupported(extensions, "EGL_WL_bind_wayland_display"))
+            return false;
+
+        if (!wpe_fdo_initialize_for_egl_display(eglDisplay))
             return false;