Changeset 249951 in webkit


Ignore:
Timestamp:
Sep 17, 2019 3:12:26 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Cannot create EGL window surface: EGL_BAD_ALLOC
https://bugs.webkit.org/show_bug.cgi?id=201505

Reviewed by Žan Doberšek.

This happens because eglCreateWindowSurface() is called twice for the same window when not using the WPE
renderer. New versions of Mesa fail the second time with a EGL_BAD_ALLOC.

  • platform/graphics/egl/GLContextEGL.cpp:

(WebCore::GLContextEGL::createWindowContext): Check surface is nullptr before falling back to use
eglCreateWindowSurface().

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r249949 r249951  
     12019-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
    1152019-09-17  Jiewen Tan  <jiewen_tan@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp

    r245807 r249951  
    189189        surface = createWindowSurfaceWPE(display, config, window);
    190190#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);
    192193#endif
    193194    if (surface == EGL_NO_SURFACE) {
Note: See TracChangeset for help on using the changeset viewer.