mesa: Allow override of GL version with environment variable
authorChad Versace <chad@chad-versace.us>
Mon, 26 Sep 2011 18:48:46 +0000 (11:48 -0700)
committerChad Versace <chad@chad-versace.us>
Tue, 27 Sep 2011 18:23:17 +0000 (11:23 -0700)
commit0527c11d7aa42bd74f4527d7299e3c18f37c4c44
tree70c481ba9bbb2ae69f884bcabe3e83756d72d2aa
parentb565e62a4499aad445bdbc0ba3a8bbc1c61e68ab
mesa: Allow override of GL version with environment variable

It is necessary to manually set the GL version to 3.0 in order to run
Piglit tests that use glGetUniform*().

This patch allows one to override the version of the OpenGL context by
setting the environment variable MESA_GL_VERSION_OVERRIDE.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad@chad-versace.us>
docs/envvars.html
src/mesa/main/version.c