Mesa (master): mesa: print Compatibility Profile in the version string
Marek Olšák
mareko at kemper.freedesktop.org
Wed May 30 00:14:00 UTC 2018
Module: Mesa
Branch: master
Commit: 27a9f273109d0f7826013afcc3b9a3dcd6a79a91
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=27a9f273109d0f7826013afcc3b9a3dcd6a79a91
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Feb 14 21:21:24 2018 +0100
mesa: print Compatibility Profile in the version string
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
---
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)" : ""
);
}
}
More information about the mesa-commit
mailing list