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/apple | |
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/apple')
-rw-r--r-- | src/glx/apple/apple_visual.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c index d665cd7e01c..a4918239178 100644 --- a/src/glx/apple/apple_visual.c +++ b/src/glx/apple/apple_visual.c @@ -90,7 +90,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m attr[numattr++] = kCGLPFAOffScreen; } - else if (getenv("LIBGL_ALWAYS_SOFTWARE") != NULL) { + else if (env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false)) { apple_glx_diagnostic ("Software rendering requested. Using kCGLRendererGenericFloatID.\n"); attr[numattr++] = kCGLPFARendererID; |