gallium/xlib: return GLX_RGBA_BIT or GLX_COLOR_INDEX_BIT in get_config()
authorBrian Paul <brianp@vmware.com>
Fri, 2 Oct 2009 13:47:49 +0000 (07:47 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 2 Oct 2009 13:47:49 +0000 (07:47 -0600)
This reverts part of commit a6b84aef4ad3a7bac40704146a98977c62bfb6e8

src/gallium/state_trackers/glx/xlib/glx_api.c

index 65012e92538842f76fb5f3fad7c19849948ea8af..7f04db2186e6d3035e782e558225525a3c1ff7e4 100644 (file)
@@ -1538,9 +1538,9 @@ get_config( XMesaVisual xmvis, int attrib, int *value, GLboolean fbconfig )
          if (!fbconfig)
             return GLX_BAD_ATTRIBUTE;
          if (xmvis->mesa_visual.rgbMode)
-            *value = GLX_RGBA_TYPE;
+            *value = GLX_RGBA_BIT;
          else
-            *value = GLX_COLOR_INDEX_TYPE;
+            *value = GLX_COLOR_INDEX_BIT;
          break;
       case GLX_X_RENDERABLE_SGIX:
          if (!fbconfig)