Module: Mesa
Branch: master
Commit: d2768a397d6fb8a094765adf428726e323a0ae03
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2768a397d6fb8a094765adf428726e323a0ae03

Author: Eric Engestrom <[email protected]>
Date:   Fri Sep  8 11:56:38 2017 +0100

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]>

---

 src/glx/apple/apple_visual.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index d8fd7b0cb3..d482bfc4e7 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to