From: Marek Olšák Date: Wed, 14 Feb 2018 20:21:24 +0000 (+0100) Subject: mesa: print Compatibility Profile in the version string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27a9f273109d0f7826013afcc3b9a3dcd6a79a91;p=mesa.git mesa: print Compatibility Profile in the version string Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri --- 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)" : "" ); } }