[Mesa-dev] [PATCH 1/2] glxinfo/wglinfo: fix indentation for listing compression formats

Brian Paul brianp at vmware.com
Wed Feb 21 20:09:19 UTC 2018


And prefix with "GL_ARB_texture_compression:" like other sections.
---
 src/xdemos/glinfo_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
index 0411891..efa96e6 100644
--- a/src/xdemos/glinfo_common.c
+++ b/src/xdemos/glinfo_common.c
@@ -785,12 +785,13 @@ print_limits(const char *extensions, const char *oglstring, int version,
    if (extension_supported("GL_ARB_texture_compression", extensions)) {
       GLint i, n;
       GLint *formats;
+      printf("  GL_ARB_texture_compression:\n");
       glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &n);
       printf("    GL_NUM_COMPRESSED_TEXTURE_FORMATS = %d\n", n);
       formats = (GLint *) malloc(n * sizeof(GLint));
       glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats);
       for (i = 0; i < n; i++) {
-         printf("        %s\n", enum_name(formats[i]));
+         printf("      %s\n", enum_name(formats[i]));
       }
       free(formats);
    }
-- 
2.7.4



More information about the mesa-dev mailing list