summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChad Versace <chad@chad-versace.us>2011-09-26 11:48:46 -0700
committerChad Versace <chad@chad-versace.us>2011-09-27 11:23:17 -0700
commit0527c11d7aa42bd74f4527d7299e3c18f37c4c44 (patch)
tree70c481ba9bbb2ae69f884bcabe3e83756d72d2aa /docs
parentb565e62a4499aad445bdbc0ba3a8bbc1c61e68ab (diff)
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/envvars.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/envvars.html b/docs/envvars.html
index 986d2f8eb35..6402ec50727 100644
--- a/docs/envvars.html
+++ b/docs/envvars.html
@@ -58,6 +58,10 @@ copied into a fixed-size buffer without truncating.
If the extension string is too long, the buffer overrun can cause the game
to crash.
This is a work-around for that.
+<li>MESA_GL_VERSION_OVERRIDE - changes the value returned by
+glGetString(GL_VERSION). Valid values are point-separated version numbers,
+such as "3.0". Mesa will not really implement all the features of the given
+version if it's higher than what's normally reported.
<li>MESA_GLSL - <a href="shading.html#envvars">shading language compiler options</a>
</ul>