diff options
author | Eric Engestrom <[email protected]> | 2018-08-14 18:04:58 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-08-16 17:38:31 +0100 |
commit | bc8abc1adf0355b54e552c0944b8742d237bd1b0 (patch) | |
tree | f9fa0ddc2ef9bc2804a51bfa1770d4c546679dff /src/mesa/main/version.c | |
parent | 471f708ed6f4787813d0656c2457a6fc5738ddfc (diff) |
bin: always define MESA_GIT_SHA1 to make it directly usable in code
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/main/version.c')
-rw-r--r-- | src/mesa/main/version.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 9df8c11c740..77ff51b6d9e 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -121,11 +121,7 @@ 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%s Mesa " PACKAGE_VERSION -#ifdef MESA_GIT_SHA1 - " (" MESA_GIT_SHA1 ")" -#endif - , + "%s%u.%u%s Mesa " PACKAGE_VERSION MESA_GIT_SHA1, prefix, ctx->Version / 10, ctx->Version % 10, (ctx->API == API_OPENGL_CORE) ? " (Core Profile)" : |