diff options
Diffstat (limited to 'lib/mesa/src/glx/indirect_glx.c')
-rw-r--r-- | lib/mesa/src/glx/indirect_glx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mesa/src/glx/indirect_glx.c b/lib/mesa/src/glx/indirect_glx.c index 51dd2cacb..4302a8ff2 100644 --- a/lib/mesa/src/glx/indirect_glx.c +++ b/lib/mesa/src/glx/indirect_glx.c @@ -30,9 +30,13 @@ * Kristian Høgsberg (krh@bitplanet.net) */ +#include <stdbool.h> + #include "glapi.h" #include "glxclient.h" +#include "util/debug.h" + #ifndef GLX_USE_APPLEGL extern struct _glapi_table *__glXNewIndirectAPI(void); @@ -371,7 +375,7 @@ indirect_create_context(struct glx_screen *psc, return NULL; } gc->client_state_private = state; - state->NoDrawArraysProtocol = (getenv("LIBGL_NO_DRAWARRAYS") != NULL); + state->NoDrawArraysProtocol = env_var_as_boolean("LIBGL_NO_DRAWARRAYS", false); /* ** Create a temporary buffer to hold GLX rendering commands. The size |