[Feat] (MG_Impl/EGLImpl): expose surfaceless platform extensions

This commit is contained in:
2026-07-02 08:09:56 +08:00
parent 4613167abb
commit 59976a7f7b
3 changed files with 19 additions and 1 deletions
+3
View File
@@ -14,6 +14,8 @@
#include <OpenGL/OpenGL.h>
#endif
extern "C" EGLDisplay eglGetPlatformDisplayEXT(EGLenum platform, void* native_display, const EGLint* attrib_list);
#define GETPROC(name, var) \
if (strcmp(#name, var) == 0) { \
return (void*)name; \
@@ -63,6 +65,7 @@ namespace MobileGL::MG_Impl {
GETPROC(eglCreateImage, name);
GETPROC(eglDestroyImage, name);
GETPROC(eglGetPlatformDisplay, name);
GETPROC(eglGetPlatformDisplayEXT, name);
GETPROC(eglCreatePlatformWindowSurface, name);
GETPROC(eglCreatePlatformPixmapSurface, name);
GETPROC(eglWaitSync, name);