LibGfx: Request correct EGLConfig surface type for WebGL

We currently look for an EGLConfig that supports window surfaces, but we
actually use a pbuffer surface.
This commit is contained in:
Erik Kurzinger 2025-08-15 09:45:08 -04:00 committed by Alexander Kalenik
commit 72a7051877
Notes: github-actions[bot] 2025-08-18 22:31:39 +00:00

View file

@ -86,7 +86,7 @@ void OpenGLContext::free_surface_resources()
static EGLConfig get_egl_config(EGLDisplay display)
{
EGLint const config_attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_RED_SIZE, 8,
EGL_GREEN_SIZE, 8,