mesa: fix up GLSL version when computing GL version
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 27 Apr 2015 18:00:44 +0000 (14:00 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 27 Apr 2015 20:03:16 +0000 (16:03 -0400)
commitdfb0b36e8ff93873920495647381b3faf30df028
tree3535facc23a6e5f8071a141761d309b4729a1769
parent7c3d1c132eea83fb257cbc473a8a79638ddc3014
mesa: fix up GLSL version when computing GL version

In some situations it is convenient for a driver to expose a higher GLSL
version while some extensions are still incomplete. However in that
situation, it would report a GLSL version that was higher than the GL
version. Avoid that situation by limiting the GLSL version to the GL
version.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/version.c