summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-08 11:56:38 +0100
committerEric Engestrom <[email protected]>2017-09-12 13:53:12 +0100
commitd2768a397d6fb8a094765adf428726e323a0ae03 (patch)
tree6da778079f002b2d2913ffad7c59ff1c749aa190 /src/glx
parent3fdbc46b42dcfd3af52d851378dd38c93eebb2e8 (diff)
glx: turn LIBGL_PROFILE_CORE into a boolean
Instead of setting based on set/unset, allow users to use boolean values. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/apple/apple_visual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index d8fd7b0cb3d..d482bfc4e71 100644
--- a/src/glx/apple/apple_visual.c
+++ b/src/glx/apple/apple_visual.c
@@ -82,7 +82,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
int numattr = 0;
GLint vsref = 0;
CGLError error = 0;
- bool use_core_profile = getenv("LIBGL_PROFILE_CORE");
+ bool use_core_profile = env_var_as_boolean("LIBGL_PROFILE_CORE", false);
if (offscreen) {
apple_glx_diagnostic