https://bugs.webkit.org/show_bug.cgi?id=226164
Patch by Zan Dobersek <zdobersek@igalia.com> on 2021-05-24
Reviewed by Philippe Normand.
In case of a surfaceless GLContextEGL, the swapBuffers() method should
return early, avoiding an assert expecting a non-null EGLSurface (not
viable for surfaceless context) and a call to eglSwapBuffers(), which
on some drivers could still fail even when the surfaceless context
support is present and active.
* platform/graphics/egl/GLContextEGL.cpp:
(WebCore::GLContextEGL::swapBuffers):
Canonical link: https://commits.webkit.org/238112@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277999 268f45cc-cd09-0410-ab3c-d52691b4dbfc