[Mesa-dev] [PATCH] glxinfo: print debug/no-error contex flags
Emil Velikov
emil.l.velikov at gmail.com
Fri Jun 30 16:28:18 UTC 2017
On 30 June 2017 at 15:44, Brian Paul <brianp at vmware.com> wrote:
> ---
> src/xdemos/glinfo_common.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
> index fe7b9c9..413a3e0 100644
> --- a/src/xdemos/glinfo_common.c
> +++ b/src/xdemos/glinfo_common.c
> @@ -721,6 +721,12 @@ context_flags_string(int mask)
> #ifdef GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB
> { GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB, "robust-access" },
> #endif
> +#ifdef GL_CONTEXT_FLAG_DEBUG_BIT
> + { GL_CONTEXT_FLAG_DEBUG_BIT, "debug" },
> +#endif
> +#ifdef GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR
> + { GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR, "no-error" },
> +#endif
IMHO a better solution is to add fall-back defines analogous to the WGL patch.
Otherwise as build server uses old headers (as they do), the flag
won't be printed when ran on capable/enabled systems.
-Emil
More information about the mesa-dev
mailing list