gallium/xlib: Fix an obvious thinko
[mesa.git] / src / gallium / state_trackers / glx / xlib / xm_api.c
index 86d27c42d6f68de3b5bca3c05f70074a5a37f33d..d63ea485e1b2f2c382671d85ba5a528c80d94730 100644 (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;