summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-02-14 21:21:24 +0100
committerMarek Olšák <[email protected]>2018-05-29 20:13:24 -0400
commit27a9f273109d0f7826013afcc3b9a3dcd6a79a91 (patch)
tree410a4aa8010c2220fdbe26a2fe4c0408473154a4 /src/mesa/main
parentd3a87537ddb40beb53364204d317530ac01a1a72 (diff)
mesa: print Compatibility Profile in the version string
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/version.c4
1 files changed, 3 insertions, 1 deletions
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)" : ""
);
}
}