diff options
author | Jordan Justen <[email protected]> | 2012-09-04 15:49:01 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-09-28 14:17:12 -0700 |
commit | 4c704e5949ced0cfaa710e492843890d57956199 (patch) | |
tree | 310f3a644836b215fb4bb2802b787dc5c93e8122 /src/mesa/main/version.c | |
parent | 7ae332dc6d41f89faf5644ce576b3e8b6e5e194e (diff) |
main/version: add "(Core Profile) to version string for core profiles
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/version.c')
-rw-r--r-- | src/mesa/main/version.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 55638a80719..19d514d4aa9 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -65,13 +65,15 @@ create_version_string(struct gl_context *ctx, const char *prefix) ctx->VersionString = malloc(max); if (ctx->VersionString) { _mesa_snprintf(ctx->VersionString, max, - "%s%u.%u Mesa " MESA_VERSION_STRING + "%s%u.%u%s Mesa " MESA_VERSION_STRING #ifdef MESA_GIT_SHA1 " (" MESA_GIT_SHA1 ")" #endif , prefix, - ctx->Version / 10, ctx->Version % 10); + ctx->Version / 10, ctx->Version % 10, + (ctx->API == API_OPENGL_CORE) ? " (Core Profile)" : "" + ); } } |