diff options
author | Ben Crossman <[email protected]> | 2005-04-15 09:13:21 +0000 |
---|---|---|
committer | Ben Crossman <[email protected]> | 2005-04-15 09:13:21 +0000 |
commit | d8aa5ffed5986587e5b93ca802c79d28be68aa8d (patch) | |
tree | 8d839f43adcbd33ba52d99296fce4ff5f0be7090 /src | |
parent | 067e788acd80b5bb276aa0c1c6d7a67b234990da (diff) |
Reverted the last change back to fix bug 3035
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/glapi/glapi.c | 2 | ||||
-rw-r--r-- | src/mesa/tnl/t_context.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index f5cd1c6ab38..8ed833042b2 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 || _mesa_getenv("MESA_DEBUG") || _mesa_getenv("LIBGL_DEBUG")) + if ((WarnFlag || getenv("MESA_DEBUG") || getenv("LIBGL_DEBUG")) && warning_func) { return GL_TRUE; } diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index f76f546b814..531e639e845 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 (_mesa_getenv("MESA_CODEGEN")) + if (getenv("MESA_CODEGEN")) tnl->AllowCodegen = GL_TRUE; /* Initialize the VB. |