mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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 <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
3fdbc46b42
commit
d2768a397d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue