projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b03dc
)
xlib: call _mesa_warning() instead of fprintf()
author
Brian Paul
<brianp@vmware.com>
Fri, 8 Dec 2017 16:31:08 +0000
(09:31 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 12 Dec 2017 16:44:59 +0000
(09:44 -0700)
We use _mesa_warning() everywhere else in this code. Change requested
by Rick Irons of Mathworks.
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/x11/fakeglx.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/fakeglx.c
b/src/mesa/drivers/x11/fakeglx.c
index 22d878eb80d2c0f4c475b6163715a3a559a3f07d..42c48264bab58dc8544266096e2c5801500873cb 100644
(file)
--- a/
src/mesa/drivers/x11/fakeglx.c
+++ b/
src/mesa/drivers/x11/fakeglx.c
@@
-2804,7
+2804,8
@@
Fake_glXCreateContextAttribs(Display *dpy, GLXFBConfig config,
profileFlags = attrib_list[i + 1];
break;
default:
- fprintf(stderr, "Bad attribute in glXCreateContextAttribs()\n");
+ _mesa_warning(NULL, "Unexpected attribute 0x%x in "
+ "glXCreateContextAttribs()\n", attrib_list[i]);
return 0;
}
}