[waffle] [PATCH 4/7] egl: Query client extensions string
Chad Versace
chadversary at chromium.org
Tue Oct 18 16:58:24 UTC 2016
Query and store the EGL client extensions string as
wegl_platform::client_extensions.
Prepares for eventual use of eglGetPlatformDisplay.
---
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 d6734ee..8ce0a7b 100644
--- a/src/waffle/egl/wegl_platform.c
+++ b/src/waffle/egl/wegl_platform.c
@@ -140,6 +140,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.0
More information about the waffle
mailing list