From 8c2dd621b6a7926e70164fa2bbd4cf860c868211 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 18 Jan 2026 22:06:43 +0800 Subject: [PATCH] [Fix] (EGLImpl/EGLWrapper): hardcode binding to `EGL_OPENGL_ES_API` for now --- MobileGL/MG_Impl/EGLImpl/EGLWrapper/EGLWrapper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MobileGL/MG_Impl/EGLImpl/EGLWrapper/EGLWrapper.cpp b/MobileGL/MG_Impl/EGLImpl/EGLWrapper/EGLWrapper.cpp index c2a73ee3..66bd0066 100644 --- a/MobileGL/MG_Impl/EGLImpl/EGLWrapper/EGLWrapper.cpp +++ b/MobileGL/MG_Impl/EGLImpl/EGLWrapper/EGLWrapper.cpp @@ -73,7 +73,9 @@ namespace MobileGL { } EGLBoolean BindAPI(EGLenum api) { - return MG_External::EGL::eglBindAPI(api); + // We should accept `EGL_OPENGL_API`, + // and bind to `EGL_OPENGL_ES_API` at the backend + return MG_External::EGL::eglBindAPI(EGL_OPENGL_ES_API); } EGLSurface GetCurrentSurface(EGLint readdraw) {