Reverted the last change back to fix bug 3035
authorBen Crossman <bencrossman@freedesktop.org>
Fri, 15 Apr 2005 09:13:21 +0000 (09:13 +0000)
committerBen Crossman <bencrossman@freedesktop.org>
Fri, 15 Apr 2005 09:13:21 +0000 (09:13 +0000)
src/mesa/glapi/glapi.c
src/mesa/tnl/t_context.c

index f5cd1c6..8ed8330 100644 (file)
@@ -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;
    }
index f76f546..531e639 100644 (file)
@@ -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.