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.
This commit is contained in:
Adam Jackson 2019-09-09 13:59:34 -04:00
parent 9173459b95
commit 04bef9a0a6

View file

@ -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;