From 00905dbf19712c532bcdb2a2f7bf5d327d4df97b Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 1 Sep 2012 01:38:08 -0700 Subject: 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 Reviewed-by: Chad Versace Reviewed-by: Eric Anholt --- docs/envvars.html | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'docs/envvars.html') diff --git a/docs/envvars.html b/docs/envvars.html index 49c9025dac2..5d855c630d7 100644 --- a/docs/envvars.html +++ b/docs/envvars.html @@ -69,9 +69,25 @@ If the extension string is too long, the buffer overrun can cause the game to crash. This is a work-around for that.
  • 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. +glGetString(GL_VERSION) and possibly the GL API type. +
      +
    • The format should be MAJOR.MINOR[FC] +
    • FC is an optional suffix that indicates a forward compatible context. +This is only valid for versions >= 3.0. +
    • GL versions < 3.0 are set to a compatibility (non-Core) profile +
    • GL versions = 3.0, see below +
    • GL versions > 3.0 are set to a Core profile +
    • Examples: 2.1, 3.0, 3.0FC, 3.1, 3.1FC +
        +
      • 2.1 - select a compatibility (non-Core) profile with GL version 2.1 +
      • 3.0 - select a compatibility (non-Core) profile with GL version 3.0 +
      • 3.0FC - select a Core+Forward Compatible profile with GL version 3.0 +
      • 3.1 - select a Core profile with GL version 3.1 +
      • 3.1FC - select a Core+Forward Compatible profile with GL version 3.1 +
      +
    • Mesa may not really implement all the features of the given version. +(for developers only) +
  • MESA_GLSL_VERSION_OVERRIDE - changes the value returned by glGetString(GL_SHADING_LANGUAGE_VERSION). Valid values are integers, such as "130". Mesa will not really implement all the features of the given language version -- cgit v1.2.3