Changeset 249951 in webkit
- Timestamp:
- Sep 17, 2019 3:12:26 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r249949 r249951 1 2019-09-17 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Cannot create EGL window surface: EGL_BAD_ALLOC 4 https://bugs.webkit.org/show_bug.cgi?id=201505 5 6 Reviewed by Žan Doberšek. 7 8 This happens because eglCreateWindowSurface() is called twice for the same window when not using the WPE 9 renderer. New versions of Mesa fail the second time with a EGL_BAD_ALLOC. 10 11 * platform/graphics/egl/GLContextEGL.cpp: 12 (WebCore::GLContextEGL::createWindowContext): Check surface is nullptr before falling back to use 13 eglCreateWindowSurface(). 14 1 15 2019-09-17 Jiewen Tan <jiewen_tan@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
r245807 r249951 189 189 surface = createWindowSurfaceWPE(display, config, window); 190 190 #else 191 surface = eglCreateWindowSurface(display, config, static_cast<EGLNativeWindowType>(window), nullptr); 191 if (surface == EGL_NO_SURFACE) 192 surface = eglCreateWindowSurface(display, config, static_cast<EGLNativeWindowType>(window), nullptr); 192 193 #endif 193 194 if (surface == EGL_NO_SURFACE) {
Note: See TracChangeset
for help on using the changeset viewer.