summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-04-19 16:04:07 -0400
committerAdam Jackson <ajax@redhat.com>2016-04-20 16:47:30 -0400
commit4997dc713a5da95d6a70f626f1f7b27eb858d16a (patch)
treea5b841239b6a83b8cb899fbf7cc4ea9e489f51c6
parent7bb5775189fbcdf0ddb62f72f00a69c635270a08 (diff)
downloadmesa-demos-4997dc713a5da95d6a70f626f1f7b27eb858d16a.zip
mesa-demos-4997dc713a5da95d6a70f626f1f7b27eb858d16a.tar.xz
eglinfo: Print client extensions first
These are independent of the display, and I want to iterate over those. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--src/egl/opengl/eglinfo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c
index ca22df2..b044eaa 100644
--- a/src/egl/opengl/eglinfo.c
+++ b/src/egl/opengl/eglinfo.c
@@ -159,7 +159,11 @@ int
main(int argc, char *argv[])
{
int maj, min;
- EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
+ EGLDisplay d;
+
+ PrintExtensions(EGL_NO_DISPLAY);
+
+ d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (!eglInitialize(d, &maj, &min)) {
printf("eglinfo: eglInitialize failed\n");
@@ -174,7 +178,6 @@ main(int argc, char *argv[])
#endif
PrintExtensions(d);
- PrintExtensions(EGL_NO_DISPLAY);
PrintConfigs(d);