intel_extensions: Add ability to set GLSL version via environment
authorChad Versace <chad@chad-versace.us>
Thu, 7 Oct 2010 23:04:30 +0000 (16:04 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Oct 2010 21:25:30 +0000 (14:25 -0700)
commita34817917bd8c408d8f732c24b4eb586f666d6c1
tree5ff6ed8269931a9c700a2d3d13fcf03cf5b6ff30
parent603741a86df0e43c0b52e8c202a35c7fe2fc1d9c
intel_extensions: Add ability to set GLSL version via environment

Add ability to set the GLSL version used by the GLcontext by setting the
environment variable INTEL_GLSL_VERSION. For example,
    env INTEL_GLSL_VERSION=130 prog args
If the environment variable is missing, the GLSL versions defaults to 120.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_extensions.c