Query and store the EGL client extensions string as wegl_platform::client_extensions.
Prepares for eventual use of eglGetPlatformDisplay. Reviewed-by: Emil Velikov <emil.l.veli...@gmail.com> --- src/waffle/egl/wegl_platform.c | 3 +++ src/waffle/egl/wegl_platform.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/waffle/egl/wegl_platform.c b/src/waffle/egl/wegl_platform.c index d09febc..524a9a8 100644 --- a/src/waffle/egl/wegl_platform.c +++ b/src/waffle/egl/wegl_platform.c @@ -142,6 +142,9 @@ wegl_platform_init(struct wegl_platform *self, EGLenum egl_platform) #undef RETRIEVE_EGL_SYMBOL + self->client_extensions = + self->eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); + setup_env(self); error: diff --git a/src/waffle/egl/wegl_platform.h b/src/waffle/egl/wegl_platform.h index a3f9a79..92db3b0 100644 --- a/src/waffle/egl/wegl_platform.h +++ b/src/waffle/egl/wegl_platform.h @@ -52,6 +52,9 @@ struct wegl_platform { // EGL function pointers void *eglHandle; + // See https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_client_extensions.txt + const char *client_extensions; + EGLBoolean (*eglMakeCurrent)(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx); __eglMustCastToProperFunctionPointerType -- 2.10.1 _______________________________________________ waffle mailing list waffle@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/waffle