diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-09-06 14:24:02 +0000 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2017-09-07 08:54:44 +0100 |
commit | 77713a0acb09f475d29f90375777e34dbd1bb02a (patch) | |
tree | 1ac9283f71d676ee1df0b3164dcc05d34eea62b4 | |
parent | 56f16c4fbbb2162a3c820db54800bc6299a62ca6 (diff) |
mesa: allow user to set MESA_NO_ERROR=0
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102530
Cc: Michel Dänzer <michel@daenzer.net>
Cc: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r-- | src/mesa/main/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index cc37a0dc4d..dad3ab39f8 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -123,6 +123,7 @@ #include "shared.h" #include "shaderobj.h" #include "shaderimage.h" +#include "util/debug.h" #include "util/disk_cache.h" #include "util/strtod.h" #include "stencil.h" @@ -1217,7 +1218,7 @@ _mesa_initialize_context(struct gl_context *ctx, /* KHR_no_error is likely to crash, overflow memory, etc if an application * has errors so don't enable it for setuid processes. */ - if (getenv("MESA_NO_ERROR")) { + if (env_var_as_boolean("MESA_NO_ERROR", false)) { #if !defined(_WIN32) if (geteuid() == getuid()) #endif |