projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3a8753
)
mesa: print Compatibility Profile in the version string
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 14 Feb 2018 20:21:24 +0000
(21:21 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 30 May 2018 00:13:24 +0000
(20:13 -0400)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/version.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/version.c
b/src/mesa/main/version.c
index 3f3dff0bde37c1bc697f3535ce6113c0a9c08d0e..1bdccf4a1df8e2f04635c9db1c12e1af5b3477d6 100644
(file)
--- 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)" : ""
);
}
}