Module: Demos Branch: master Commit: 4997dc713a5da95d6a70f626f1f7b27eb858d16a URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=4997dc713a5da95d6a70f626f1f7b27eb858d16a
Author: Adam Jackson <a...@redhat.com> Date: Tue Apr 19 16:04:07 2016 -0400 eglinfo: Print client extensions first These are independent of the display, and I want to iterate over those. Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> Signed-off-by: Adam Jackson <a...@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); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit