summaryrefslogtreecommitdiffstats
path: root/src/glx/apple
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-08 11:46:25 +0100
committerEric Engestrom <[email protected]>2017-09-12 13:53:11 +0100
commit43e2d58698f76b96b36ff3cb2eba1713ff3a3125 (patch)
tree651ca935a2f192a61bad5140728e6ead2c971488 /src/glx/apple
parent5c68ea29f31283768c8e1b631eb812d1e74cb5c3 (diff)
glx: turn LIBGL_ALLOW_SOFTWARE into a boolean
Instead of setting based on set/unset, allow users to use boolean values. In the help string, use `ALLOW=true` instead of `ALLOW=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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index a4918239178..d8fd7b0cb3d 100644
--- a/src/glx/apple/apple_visual.c
+++ b/src/glx/apple/apple_visual.c
@@ -96,7 +96,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
attr[numattr++] = kCGLPFARendererID;
attr[numattr++] = kCGLRendererGenericFloatID;
}
- else if (getenv("LIBGL_ALLOW_SOFTWARE") != NULL) {
+ else if (env_var_as_boolean("LIBGL_ALLOW_SOFTWARE", false)) {
apple_glx_diagnostic
("Software rendering is not being excluded. Not using kCGLPFAAccelerated.\n");
}
@@ -190,7 +190,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
if (!*pfobj) {
snprintf(__crashreporter_info_buff__, sizeof(__crashreporter_info_buff__),
- "No matching pixelformats found, perhaps try using LIBGL_ALLOW_SOFTWARE\n");
+ "No matching pixelformats found, perhaps try setting LIBGL_ALLOW_SOFTWARE=true\n");
fprintf(stderr, "%s", __crashreporter_info_buff__);
abort();
}