summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-04-29 18:48:58 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-08-03 17:57:01 +0200
commitac239ae4459bde398032e27c312cf394ec9123fa (patch)
tree9bd5f309e9078a327297f4659547eaf0b299cd15
parent398c2ee54e7673f4361c138bc48a4066d62966ee (diff)
downloadmesa-demos-ac239ae4459bde398032e27c312cf394ec9123fa.zip
mesa-demos-ac239ae4459bde398032e27c312cf394ec9123fa.tar.xz
eglinfo: print client extensions
-rw-r--r--src/egl/opengl/eglinfo.c6
1 files changed, 5 insertions, 1 deletions
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);