diff options
author | Brian Paul <[email protected]> | 2008-06-06 15:41:41 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-06 15:52:47 -0600 |
commit | f82d5cf76929ed2de29966117f97774b465d6b0d (patch) | |
tree | 430e6f7efb587cb08ee5b92aaacb783cd05a7f0f /src/glx/x11 | |
parent | 47ddcd2a7144ea456fcd52b9470e4e41b878af48 (diff) |
mesa: disable visual warning unless LIBGL_DEBUG is defined
Diffstat (limited to 'src/glx/x11')
-rw-r--r-- | src/glx/x11/glxext.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 ) { |