Stefan Dirsch
efe7158fae
Suppress any "libGL:..." warnings when LIBGL_DEBUG == "quiet" (bnc#892896) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=393
31 lines
1000 B
Diff
31 lines
1000 B
Diff
From f69eca0843142d16c81cc3efd02fc50cf219cafd Mon Sep 17 00:00:00 2001
|
|
From: Stefan Dirsch <sndirsch@suse.de>
|
|
Date: Fri, 22 Aug 2014 14:35:06 +0200
|
|
Subject: [PATCH] Suppress any "libGL:..." warnings when LIBGL_DEBUG == "quiet"
|
|
(bnc#892896)
|
|
|
|
Let's handle LIBGL_DEBUG env. variable in Mesa in a consistent way.
|
|
---
|
|
src/mesa/drivers/dri/common/xmlconfig.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
|
|
index ce37647..8e48522 100644
|
|
--- a/src/mesa/drivers/dri/common/xmlconfig.c
|
|
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
|
|
@@ -429,8 +429,10 @@ static void
|
|
__driUtilMessage(const char *f, ...)
|
|
{
|
|
va_list args;
|
|
+ const char *libgl_debug;
|
|
|
|
- if (getenv("LIBGL_DEBUG")) {
|
|
+ libgl_debug=getenv("LIBGL_DEBUG");
|
|
+ if (libgl_debug && !strstr(libgl_debug, "quiet")) {
|
|
fprintf(stderr, "libGL: ");
|
|
va_start(args, f);
|
|
vfprintf(stderr, f, args);
|
|
--
|
|
1.8.4.5
|
|
|