From: Roland Scheidegger Date: Thu, 16 Aug 2007 00:41:03 +0000 (+0200) Subject: suppress warning about ncon visuals (bug #6689) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6d4dddb38e2342a6f80d7a241f23900b8b4c633;p=mesa.git suppress warning about ncon visuals (bug #6689) --- diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index af3a5166dc6..8fe10338a80 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -672,8 +672,11 @@ 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); + /* don't warn for this visual (Novell #247471 / X.Org #6689) */ + if (m->visualRating != GLX_NON_CONFORMANT_CONFIG) { + fprintf(stderr, "libGL warning: 3D driver claims to not " + "support visual 0x%02x\n", m->visualID); + } } if ( do_delete ) {