summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-04-07 03:55:28 -0400
committerJoe Crayne <joe@jerkface.net>2019-04-07 03:55:28 -0400
commitc48ef3898d24646d7b5a302277b66e43d14d3689 (patch)
tree8c95b14d65d93d1758a19baeef33358a4d568409 /run.sh
parent7936188b0ab13a1b0bd8b16e38d6fca1d8d20aa6 (diff)
Added documentation for the environment variables I needed.
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh40
1 files changed, 40 insertions, 0 deletions
diff --git a/run.sh b/run.sh
index 0bbf53d..0df74ba 100755
--- a/run.sh
+++ b/run.sh
@@ -1,2 +1,42 @@
1#!/bin/sh 1#!/bin/sh
2
3# MESA_GLSL_VERSION_OVERRIDE
4#
5# changes the value returned by glGetString(GL_SHADING_LANGUAGE_VERSION). Valid
6# values are integers, such as "130". Mesa will not really implement all the
7# features of the given language version if it's higher than what's normally
8# reported. (for developers only)
9
10# MESA_GL_VERSION_OVERRIDE
11#
12# changes the value returned by glGetString(GL_VERSION) and possibly the GL API
13# type. The format should be MAJOR.MINOR[FC|COMPAT]
14#
15# FC is an optional suffix that indicates a forward compatible context.
16# This is only valid for versions >= 3.0.
17#
18# COMPAT is an optional suffix that indicates a compatibility context or
19# GL_ARB_compatibility support. This is only valid for versions >= 3.1.
20#
21# GL versions <= 3.0 are set to a compatibility (non-Core) profile
22#
23# GL versions = 3.1, depending on the driver, it may or may not have the
24# ARB_compatibility extension enabled.
25#
26# GL versions >= 3.2 are set to a Core profile
27#
28# Examples: 2.1, 3.0, 3.0FC, 3.1, 3.1FC, 3.1COMPAT, X.Y, X.YFC, X.YCOMPAT.
29# 2.1 - select a compatibility (non-Core) profile with GL version 2.1.
30# 3.0 - select a compatibility (non-Core) profile with GL version 3.0.
31# 3.0FC - select a Core+Forward Compatible profile with GL version 3.0.
32# 3.1 - select GL version 3.1 with GL_ARB_compatibility enabled per the driver default.
33# 3.1FC - select GL version 3.1 with forward compatibility and GL_ARB_compatibility disabled.
34# 3.1COMPAT - select GL version 3.1 with GL_ARB_compatibility enabled.
35# X.Y - override GL version to X.Y without changing the profile.
36# X.YFC - select a Core+Forward Compatible profile with GL version X.Y.
37# X.YCOMPAT - select a Compatibility profile with GL version X.Y.
38#
39# Mesa may not really implement all the features of the given version. (for
40# developers only)
41
2MESA_GL_VERSION_OVERRIDE=3.3 MESA_GLSL_VERSION_OVERRIDE=330 ./GtkHello 42MESA_GL_VERSION_OVERRIDE=3.3 MESA_GLSL_VERSION_OVERRIDE=330 ./GtkHello