From 72a7051877d887b0fe156b5dc320317021ec203b Mon Sep 17 00:00:00 2001 From: Erik Kurzinger Date: Fri, 15 Aug 2025 09:45:08 -0400 Subject: [PATCH] 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. --- Libraries/LibWeb/WebGL/OpenGLContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/WebGL/OpenGLContext.cpp b/Libraries/LibWeb/WebGL/OpenGLContext.cpp index 43d459f04e2..0bef8232bb6 100644 --- a/Libraries/LibWeb/WebGL/OpenGLContext.cpp +++ b/Libraries/LibWeb/WebGL/OpenGLContext.cpp @@ -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,