diff options
author | Eric Engestrom <[email protected]> | 2017-09-08 11:52:01 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-09-12 13:53:11 +0100 |
commit | 5c68ea29f31283768c8e1b631eb812d1e74cb5c3 (patch) | |
tree | f37325b713cf841ac49ea6e0cb372b5619473d1d /src/glx/glxext.c | |
parent | f4a9d205d8a6474defa86dc4f12b7e63e61a49d9 (diff) |
egl+glx: turn LIBGL_ALWAYS_SOFTWARE into a boolean
Instead of setting based on set/unset, allow users to use boolean values.
In the docs, use `ALWAYS=true` instead of `ALWAYS=1` as it's clearer IMO.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx/glxext.c')
-rw-r--r-- | src/glx/glxext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 3431f3e5cae..cd9a3ba6ba0 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -908,7 +908,7 @@ __glXInitialize(Display * dpy) #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) glx_direct = (getenv("LIBGL_ALWAYS_INDIRECT") == NULL); - glx_accel = (getenv("LIBGL_ALWAYS_SOFTWARE") == NULL); + glx_accel = !env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false); dpyPriv->drawHash = __glxHashCreate(); |