mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
xmlconfig: suppress libGL warnings when LIBGL_DEBUG == "quiet"
Let's handle LIBGL_DEBUG env. variable in Mesa in a consistent way. Fixes: https://bugzilla.novell.com/show_bug.cgi?id=895730 Signed-off-by: Stefan Dirsch <sndirsch@suse.de> Reviewed-by: Courtney Goeltzenleuchter <courtney@lunarg.com>
This commit is contained in:
parent
3d8b53ffb4
commit
49022a9713
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue