Adam Jackson <a...@redhat.com> writes: > Signed-off-by: Adam Jackson <a...@redhat.com> > --- > src/egl/opengl/eglinfo.c | 29 ++++++++++++++++++----------- > 1 file changed, 18 insertions(+), 11 deletions(-) > > diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c > index b044eaa..875e407 100644 > --- a/src/egl/opengl/eglinfo.c > +++ b/src/egl/opengl/eglinfo.c > @@ -155,19 +155,15 @@ PrintExtensions(EGLDisplay d) > printf("\n"); > } > > -int > -main(int argc, char *argv[]) > +static int > +doOneDisplay(EGLDisplay d, const char *name) > { > int maj, min; > - EGLDisplay d; > - > - PrintExtensions(EGL_NO_DISPLAY); > - > - d = eglGetDisplay(EGL_DEFAULT_DISPLAY); > > + printf("%s:\n", name); > if (!eglInitialize(d, &maj, &min)) { > printf("eglinfo: eglInitialize failed\n"); > - exit(1); > + return 1; > } > > printf("EGL API version: %d.%d\n", maj, min); > @@ -180,8 +176,19 @@ main(int argc, char *argv[]) > PrintExtensions(d); > > PrintConfigs(d); > - > - eglTerminate(d); > - > + printf("\n"); > return 0; > }
eglTerminate(d) disappeared entirely. Looks like that wasn't intentional? Other than that, this series is: Reviewed-by: Eric Anholt <e...@anholt.net>
signature.asc
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev