diff options
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 2d8653f04cb..66f96de4140 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -87,6 +87,7 @@ #include <stdlib.h> #include <string.h> +#include "eglglobals.h" #include "eglcontext.h" #include "egldisplay.h" #include "egltypedefs.h" @@ -354,10 +355,15 @@ eglTerminate(EGLDisplay dpy) const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name) { - _EGLDisplay *disp = _eglLockDisplay(dpy); + _EGLDisplay *disp; _EGLDriver *drv; const char *ret; + if (dpy == EGL_NO_DISPLAY && name == EGL_EXTENSIONS) { + RETURN_EGL_SUCCESS(NULL, _eglGlobal.ClientExtensionString); + } + + disp = _eglLockDisplay(dpy); _EGL_CHECK_DISPLAY(disp, NULL, drv); ret = drv->API.QueryString(drv, disp, name); |