[Improvement] (MG_Backend): Separate Initialize and InitCapabilities.

This commit is contained in:
BZLZHH
2026-02-20 15:26:46 +08:00
parent e34f3d915c
commit 60f06d1b8d
6 changed files with 20 additions and 109 deletions
+7
View File
@@ -59,6 +59,13 @@ namespace MobileGL::MG_Impl::EGLImpl {
}
EGLBoolean MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) {
MGLOG_D("EGLImpl::CreateWindowSurface called with window=%p", window);
const auto& activeBackendObject = MG_Backend::pActiveBackendObject;
if (!activeBackendObject) {
MGLOG_E("activeBackendObject not initialized!");
return EGL_FALSE;
}
activeBackendObject->InitCapabilities();
return EGL_TRUE;
}