Module: Mesa Branch: master Commit: 27a9f273109d0f7826013afcc3b9a3dcd6a79a91 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=27a9f273109d0f7826013afcc3b9a3dcd6a79a91
Author: Marek Olšák <[email protected]> Date: Wed Feb 14 21:21:24 2018 +0100 mesa: print Compatibility Profile in the version string Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> --- 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 3f3dff0bde..1bdccf4a1d 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)" : "" ); } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
