[Mesa-dev] [PATCH demos 2/4] eglinfo: Print client extensions first

Adam Jackson ajax at redhat.com
Wed Apr 20 20:10:02 UTC 2016


These are independent of the display, and I want to iterate over those.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/egl/opengl/eglinfo.c | 7 +++++--
 1 file 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);
 
-- 
2.7.3



More information about the mesa-dev mailing list