projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f51e88
)
mesa: add switch case for GL 2.1 in _mesa_compute_version()
author
Brian Paul
<brianp@vmware.com>
Fri, 27 Jul 2018 18:58:35 +0000
(12:58 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 28 Jul 2018 03:21:24 +0000
(21:21 -0600)
The xlib/swrast driver only supports GL 2.1. This patch fixes a
crash if the app calls glGetString(GL_SHADING_LANGUAGE_VERSION).
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/main/version.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/version.c
b/src/mesa/main/version.c
index 58e68b47721462ef43c3679101ccfc0ed6ae2c11..2c5bd7778770d1e9f9c7cb24220b672a79892df3 100644
(file)
--- a/
src/mesa/main/version.c
+++ b/
src/mesa/main/version.c
@@
-617,6
+617,9
@@
_mesa_compute_version(struct gl_context *ctx)
*/
if (_mesa_is_desktop_gl(ctx)) {
switch (ctx->Version) {
+ case 21:
+ ctx->Const.GLSLVersion = 120;
+ break;
case 30:
ctx->Const.GLSLVersion = 130;
break;