mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
A few getenv() that werent using the mesa wrapper version
This commit is contained in:
parent
b2b01a60db
commit
369404299c
3 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue