[Webkit-unassigned] [Bug 115721] [GTK] Always use EGL to create the GL context when running on Wayland
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 13 08:27:24 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=115721
Martin Robinson <mrobinson at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #201536|review? |review+
Flag| |
--- Comment #6 from Martin Robinson <mrobinson at webkit.org> 2013-05-13 08:25:49 PST ---
(From update of attachment 201536)
View in context: https://bugs.webkit.org/attachment.cgi?id=201536&action=review
> Source/WebCore/platform/graphics/cairo/GLContext.cpp:131
> +#if PLATFORM(GTK) && defined(GDK_WINDOWING_WAYLAND) && USE(EGL)
> + GdkDisplay* display = gdk_display_manager_get_default_display(gdk_display_manager_get());
> +
> + if (GDK_IS_WAYLAND_DISPLAY(display)) {
> + if (OwnPtr<GLContext> eglContext = GLContextEGL::createContext(windowHandle, sharingContext))
> + return eglContext.release();
> + return nullptr;
It's a pity there is no platform-independent way to detect that wayland is running, but this will suffice for now.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list