projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9173459
)
gallium/xlib: Fix an obvious thinko
author
Adam Jackson
<ajax@redhat.com>
Mon, 9 Sep 2019 17:59:34 +0000
(13:59 -0400)
committer
Adam Jackson
<ajax@redhat.com>
Mon, 9 Sep 2019 18:12:57 +0000
(14:12 -0400)
x == !GLX_DIRECT_COLOR is a fancy way of writing x == 0, which is
clearly not what was meant.
src/gallium/state_trackers/glx/xlib/xm_api.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/glx/xlib/xm_api.c
b/src/gallium/state_trackers/glx/xlib/xm_api.c
index 86d27c42d6f68de3b5bca3c05f70074a5a37f33d..d63ea485e1b2f2c382671d85ba5a528c80d94730 100644
(file)
--- a/
src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/
src/gallium/state_trackers/glx/xlib/xm_api.c
@@
-661,7
+661,7
@@
initialize_visual_and_buffer(XMesaVisual v, XMesaBuffer b,
* We support RGB rendering into almost any kind of visual.
*/
const int xclass = v->visualType;
- if (xclass != GLX_TRUE_COLOR && xclass
== !
GLX_DIRECT_COLOR) {
+ if (xclass != GLX_TRUE_COLOR && xclass
!=
GLX_DIRECT_COLOR) {
_mesa_warning(NULL,
"XMesa: RGB mode rendering not supported in given visual.\n");
return GL_FALSE;