diff options
Diffstat (limited to 'progs/egl/eglinfo.c')
-rw-r--r-- | progs/egl/eglinfo.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/progs/egl/eglinfo.c b/progs/egl/eglinfo.c index 4826fd0948b..f9c24754457 100644 --- a/progs/egl/eglinfo.c +++ b/progs/egl/eglinfo.c @@ -48,9 +48,9 @@ PrintConfigs(EGLDisplay d) eglGetConfigs(d, configs, MAX_CONFIGS, &numConfigs); printf("Configurations:\n"); - printf(" bf lv d st colorbuffer dp st supported \n"); + printf(" bf lv d st colorbuffer dp st supported\n"); printf(" id sz l b ro r g b a th cl surfaces \n"); - printf("----------------------------------------------\n"); + printf("---------------------------------------------------\n"); for (i = 0; i < numConfigs; i++) { EGLint id, size, level; EGLint red, green, blue, alpha; @@ -77,6 +77,10 @@ PrintConfigs(EGLDisplay d) strcat(surfString, "pb,"); if (surfaces & EGL_PIXMAP_BIT) strcat(surfString, "pix,"); +#ifdef EGL_MESA_screen_surface + if (surfaces & EGL_SCREEN_BIT_MESA) + strcat(surfString, "scrn,"); +#endif if (strlen(surfString) > 0) surfString[strlen(surfString) - 1] = 0; @@ -136,7 +140,7 @@ main(int argc, char *argv[]) { int maj, min; /*EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);*/ - EGLDisplay d = eglGetDisplay("!r200_dri"); + EGLDisplay d = eglGetDisplay(":0"); if (!eglInitialize(d, &maj, &min)) { printf("eglinfo: eglInitialize failed\n"); |