From 27a9f273109d0f7826013afcc3b9a3dcd6a79a91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 14 Feb 2018 21:21:24 +0100 Subject: [PATCH] mesa: print Compatibility Profile in the version string MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri --- src/mesa/main/version.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 3f3dff0bde3..1bdccf4a1df 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -128,7 +128,9 @@ create_version_string(struct gl_context *ctx, const char *prefix) , prefix, ctx->Version / 10, ctx->Version % 10, - (ctx->API == API_OPENGL_CORE) ? " (Core Profile)" : "" + (ctx->API == API_OPENGL_CORE) ? " (Core Profile)" : + (ctx->API == API_OPENGL_COMPAT && ctx->Version >= 32) ? + " (Compatibility Profile)" : "" ); } } -- 2.30.2