mesa: Add support for a new override string MESA_GLES_VERSION_OVERRIDE
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 26 May 2015 19:07:13 +0000 (12:07 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 28 May 2015 23:56:31 +0000 (16:56 -0700)
commit03fd6704db9f1d0f203bf8da18bd587c7e35ce60
tree712a3a279a7e273b15d99f15e9bfffec48a06907
parent464c56d3d5ca2c9d6e437e756950f0fa2996d8da
mesa: Add support for a new override string MESA_GLES_VERSION_OVERRIDE

The string is only applied when the context is API_OPENGLES2.

The bulk of the change is to prevent overriding the context to
API_OPENGL_CORE based on the requested version.  If the context is
API_OPENGL_ES2, don't change it.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/version.c