mesa: allow MESA_GL_VERSION_OVERRIDE to override the API type
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 1 Sep 2012 08:38:08 +0000 (01:38 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 28 Sep 2012 23:15:51 +0000 (16:15 -0700)
commit00905dbf19712c532bcdb2a2f7bf5d327d4df97b
tree44aafa4af9176b08477aa9609e956ec69dc3a2a1
parente87c63f2889fcbeb5a8bbd91eda1333d7ed44bf2
mesa: allow MESA_GL_VERSION_OVERRIDE to override the API type

Change the format to MAJOR.MINOR[FC]
For example: 2.1, 3.0FC, 3.1

The FC suffix indicates a forward compatible context, and
is only valid for versions >= 3.0.

Examples:
2.1:   GL Legacy/Compatibility context
3.0:   GL Legacy/Compatibility context
3.0FC: GL Core Profile context + Forward Compatible
3.1:   GL Core Profile context
3.1FC: GL Core Profile context + Forward Compatible

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
docs/envvars.html
src/mesa/main/context.c
src/mesa/main/version.c
src/mesa/main/version.h