DRI: Remove support for color-index visuals
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 25 Feb 2010 02:23:19 +0000 (18:23 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 3 Mar 2010 20:37:04 +0000 (12:37 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/common/utils.c

index b6f291098de3b877f5fedc3fdce788cdcbc00cb2..9a21f2c9f2c09ab7bfc08612c591b4a556890b9b 100644 (file)
@@ -625,11 +625,10 @@ driCreateConfigs(GLenum fb_format, GLenum fb_type,
                    modes->bindToTextureRgb = GL_TRUE;
                    modes->bindToTextureRgba = GL_TRUE;
                    modes->bindToMipmapTexture = GL_FALSE;
-                   modes->bindToTextureTargets = modes->rgbMode ?
-                       __DRI_ATTRIB_TEXTURE_1D_BIT |
-                       __DRI_ATTRIB_TEXTURE_2D_BIT |
-                       __DRI_ATTRIB_TEXTURE_RECTANGLE_BIT :
-                       0;
+                   modes->bindToTextureTargets =
+                       __DRI_ATTRIB_TEXTURE_1D_BIT |
+                       __DRI_ATTRIB_TEXTURE_2D_BIT |
+                       __DRI_ATTRIB_TEXTURE_RECTANGLE_BIT;
                }
            }
        }
@@ -726,11 +725,7 @@ driGetConfigAttribIndex(const __DRIconfig *config,
 {
     switch (attribMap[index].attrib) {
     case __DRI_ATTRIB_RENDER_TYPE:
-       if (config->modes.rgbMode)
-           *value = __DRI_ATTRIB_RGBA_BIT;
-       else
-           *value = __DRI_ATTRIB_COLOR_INDEX_BIT;
-       break;
+       *value = __DRI_ATTRIB_RGBA_BIT;
     case __DRI_ATTRIB_CONFIG_CAVEAT:
        if (config->modes.visualRating == GLX_NON_CONFORMANT_CONFIG)
            *value = __DRI_ATTRIB_NON_CONFORMANT_CONFIG;