[Mesa-dev] [PATCH 1/2] eglinfo: print client extensions
Marek Olšák
maraeo at gmail.com
Mon Aug 3 10:33:55 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
---
src/egl/opengl/eglinfo.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c
index 961fd9c..8e82e73 100644
--- a/src/egl/opengl/eglinfo.c
+++ b/src/egl/opengl/eglinfo.c
@@ -162,9 +162,12 @@ PrintExtensions(EGLDisplay d)
const char *extensions, *p, *end, *next;
int column;
- printf("EGL extensions string:\n");
+ puts(d == EGL_NO_DISPLAY ? "EGL client extensions string:" :
+ "EGL extensions string:");
extensions = eglQueryString(d, EGL_EXTENSIONS);
+ if (!extensions)
+ return;
column = 0;
end = extensions + strlen(extensions);
@@ -212,6 +215,7 @@ main(int argc, char *argv[])
#endif
PrintExtensions(d);
+ PrintExtensions(EGL_NO_DISPLAY);
PrintConfigs(d);
--
2.1.4
More information about the mesa-dev
mailing list