summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-06 15:41:41 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-06 15:52:47 -0600
commitf82d5cf76929ed2de29966117f97774b465d6b0d (patch)
tree430e6f7efb587cb08ee5b92aaacb783cd05a7f0f /src
parent47ddcd2a7144ea456fcd52b9470e4e41b878af48 (diff)
mesa: disable visual warning unless LIBGL_DEBUG is defined
Diffstat (limited to 'src')
-rw-r--r--src/glx/x11/glxext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 2852217ba3..6403cbd56d 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 ) {