diff options
author | Adam Jackson <ajax@redhat.com> | 2019-09-09 13:59:34 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-09-09 14:12:57 -0400 |
commit | 04bef9a0a6ed9cff3cbe4c43c056de95bb12d526 (patch) | |
tree | cc14a3da05bae0bc526635e1eed9932a6e0ed6bd | |
parent | 9173459b950218cff72d7f31dea34a25955619c4 (diff) | |
download | mesa-04bef9a0a6ed9cff3cbe4c43c056de95bb12d526.tar.gz mesa-04bef9a0a6ed9cff3cbe4c43c056de95bb12d526.tar.bz2 mesa-04bef9a0a6ed9cff3cbe4c43c056de95bb12d526.zip |
gallium/xlib: Fix an obvious thinko
x == !GLX_DIRECT_COLOR is a fancy way of writing x == 0, which is
clearly not what was meant.
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 86d27c42d6f..d63ea485e1b 100644 --- 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; |