From 369404299c6e23ee0cc4b572c95e5533314064d7 Mon Sep 17 00:00:00 2001 From: Ben Crossman Date: Thu, 14 Apr 2005 19:54:15 +0000 Subject: [PATCH] A few getenv() that werent using the mesa wrapper version --- src/mesa/glapi/glapi.c | 2 +- src/mesa/main/imports.c | 2 ++ src/mesa/tnl/t_context.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 8ed8330..f5cd1c6 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -87,7 +87,7 @@ _glapi_set_warning_func( _glapi_warning_func func ) static GLboolean warn(void) { - if ((WarnFlag || getenv("MESA_DEBUG") || getenv("LIBGL_DEBUG")) + if ((WarnFlag || _mesa_getenv("MESA_DEBUG") || _mesa_getenv("LIBGL_DEBUG")) && warning_func) { return GL_TRUE; } diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index cee54e5..50bc151 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -682,6 +682,8 @@ _mesa_getenv( const char *var ) { #if defined(XFree86LOADER) && defined(IN_MODULE) return xf86getenv(var); +#elif defined(_XBOX) + return NULL; #else return getenv(var); #endif diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 531e639..f76f546 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -82,7 +82,7 @@ _tnl_CreateContext( GLcontext *ctx ) return GL_FALSE; } - if (getenv("MESA_CODEGEN")) + if (_mesa_getenv("MESA_CODEGEN")) tnl->AllowCodegen = GL_TRUE; /* Initialize the VB. -- 2.7.4