[Mesa-dev] [PATCH 2/2] glxinfo/wglinfo: print list of 4.3 shading language versions
Andreas Boll
andreas.boll.dev at gmail.com
Thu Feb 22 21:23:39 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>:
> v2: fix indentation, prefix with "4.3:" like other sections.
> ---
> src/xdemos/glinfo_common.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
> index efa96e6..3668026 100644
> --- a/src/xdemos/glinfo_common.c
> +++ b/src/xdemos/glinfo_common.c
> @@ -795,6 +795,20 @@ print_limits(const char *extensions, const char *oglstring, int version,
> }
> free(formats);
> }
> +
> +#if defined(GL_VERSION_4_3)
> + if (version >= 43) {
> + GLint i, n = 0;
> + printf(" 4.3:\n");
> + glGetIntegerv(GL_NUM_SHADING_LANGUAGE_VERSIONS, &n);
> + printf(" GL_NUM_SHADING_LANGUAGE_VERSIONS = %d\n", n);
> + for (i = 0; i < n; i++) {
> + printf(" %s\n", (const char *)
> + extfuncs->GetStringi(GL_SHADING_LANGUAGE_VERSION, i));
> + }
> + }
> +#endif
> +
> #if defined(GL_ARB_vertex_program)
> if (extension_supported("GL_ARB_vertex_program", extensions)) {
> print_program_limits(GL_VERTEX_PROGRAM_ARB, extfuncs);
> --
> 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