From 369404299c6e23ee0cc4b572c95e5533314064d7 Mon Sep 17 00:00:00 2001 From: Ben Crossman Date: Thu, 14 Apr 2005 19:54:15 +0000 Subject: A few getenv() that werent using the mesa wrapper version --- src/mesa/glapi/glapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/glapi') diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 8ed833042b2..f5cd1c6ab38 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; } -- cgit v1.2.3