From b2006a40eb22899d38cd31691640555228e36975 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 30 Jan 2006 00:10:55 +0000 Subject: some initial EGL 1.2 work --- src/egl/main/eglcontext.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/egl/main/eglcontext.c') diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 07b63e9b11..374c006dae 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -160,6 +160,11 @@ _eglQueryContext(_EGLDriver *drv, EGLDisplay dpy, EGLContext ctx, case EGL_CONFIG_ID: *value = GET_CONFIG_ATTRIB(c->Config, EGL_CONFIG_ID); return EGL_TRUE; +#ifdef EGL_VERSION_1_2 + case EGL_CONTEXT_CLIENT_TYPE: + *value = c->ClientAPI; + return EGL_FALSE; +#endif /* EGL_VERSION_1_2 */ default: _eglError(EGL_BAD_ATTRIBUTE, "eglQueryContext"); return EGL_FALSE; -- cgit v1.2.3