A few getenv() that werent using the mesa wrapper version

This commit is contained in:
Ben Crossman 2005-04-14 19:54:15 +00:00
parent b2b01a60db
commit 369404299c
3 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

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

View file

@ -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.