summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-10-10 00:22:13 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-10-10 00:22:13 +0000
commit71072be182f053873728ab7012bc0b92361297bb (patch)
tree87eefbe67abf71a6a43ddaa5f3e0dad34c82bb10
parent0670eb259d2ede9d1ca1762759737b8cc31a67a4 (diff)
disable _glapi_set_warning_func() call as it's not present in older libGLs
-rw-r--r--src/mesa/main/context.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 8ce690722e..cac01e4d8e 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.181 2002/10/09 19:36:24 brianp Exp $ */
+/* $Id: context.c,v 1.182 2002/10/10 00:22:13 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -592,7 +592,13 @@ one_time_init( GLcontext *ctx )
#endif
if (ctx->imports.getenv(ctx, "MESA_DEBUG")) {
_glapi_noop_enable_warnings(GL_TRUE);
+#ifndef GLX_DIRECT_RENDERING
+ /* libGL from before 2002/06/28 don't have this function. Someday,
+ * when newer libGL libs are common, remove the #ifdef test. This
+ * only serves to print warnings when calling undefined GL functions.
+ */
_glapi_set_warning_func( (_glapi_warning_func) _mesa_warning );
+#endif
}
else {
_glapi_noop_enable_warnings(GL_FALSE);