[Mesa-dev] [PATCH 1/2] glxinfo/wglinfo: fix indentation for listing compression formats
Andreas Boll
andreas.boll.dev at gmail.com
Thu Feb 22 21:22:55 UTC 2018
Reviewed-by: Andreas Boll <andreas.boll.dev at gmail.com>
2018-02-21 21:09 GMT+01:00 Brian Paul <brianp at vmware.com>:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list