From: Brian Paul Date: Fri, 6 Jun 2008 21:41:41 +0000 (-0600) Subject: mesa: disable visual warning unless LIBGL_DEBUG is defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f82d5cf76929ed2de29966117f97774b465d6b0d;p=mesa.git mesa: disable visual warning unless LIBGL_DEBUG is defined --- diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 2852217ba39..6403cbd56df 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -671,8 +671,10 @@ filter_modes( __GLcontextModes ** server_modes, if ( do_delete && (m->visualID != 0) ) { do_delete = GL_FALSE; - fprintf(stderr, "libGL warning: 3D driver claims to not support " - "visual 0x%02x\n", m->visualID); + if (getenv("LIBGL_DEBUG")) { + fprintf(stderr, "libGL warning: 3D driver claims to not support " + "visual 0x%02x\n", m->visualID); + } } if ( do_delete ) {