Changeset 250903 in webkit
- Timestamp:
- Oct 9, 2019 1:45:39 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r250902 r250903 1 2019-10-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Wayland: do not use EGL_PLATFORM_WAYLAND_KHR with eglGetPlatformDisplayEXT 4 https://bugs.webkit.org/show_bug.cgi?id=202689 5 6 Reviewed by Žan Doberšek. 7 8 Use EGL_PLATFORM_WAYLAND_EXT instead. It shouldn't really matter because both are the same value. 9 10 * platform/graphics/wayland/PlatformDisplayWayland.cpp: 11 (WebCore::PlatformDisplayWayland::initialize): 12 1 13 2019-10-09 Antti Koivisto <antti@apple.com> 2 14 -
trunk/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp
r243163 r250903 94 94 95 95 #if USE(EGL) 96 #if defined(EGL_KHR_platform_wayland) || defined(EGL_EXT_platform_wayland) 97 const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS); 96 98 #if defined(EGL_KHR_platform_wayland) 97 const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS);98 99 if (GLContext::isExtensionSupported(extensions, "EGL_KHR_platform_base")) { 99 100 if (auto* getPlatformDisplay = reinterpret_cast<PFNEGLGETPLATFORMDISPLAYEXTPROC>(eglGetProcAddress("eglGetPlatformDisplay"))) 100 101 m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR, m_display, nullptr); 101 } else if (GLContext::isExtensionSupported(extensions, "EGL_EXT_platform_base")) { 102 } 103 #endif 104 #if defined(EGL_EXT_platform_wayland) 105 if (m_eglDisplay == EGL_NO_DISPLAY && GLContext::isExtensionSupported(extensions, "EGL_EXT_platform_base")) { 102 106 if (auto* getPlatformDisplay = reinterpret_cast<PFNEGLGETPLATFORMDISPLAYEXTPROC>(eglGetProcAddress("eglGetPlatformDisplayEXT"))) 103 m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_ KHR, m_display, nullptr);104 } else107 m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_EXT, m_display, nullptr); 108 } 105 109 #endif 110 #endif 111 if (m_eglDisplay == EGL_NO_DISPLAY) 106 112 m_eglDisplay = eglGetDisplay(m_display); 107 113
Note: See TracChangeset
for help on using the changeset viewer.