summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/common/utils.c5
-rw-r--r--src/mesa/main/mtypes.h3
2 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
index 7da8768a3be..265362b26e1 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -345,7 +345,6 @@ driCreateConfigs(mesa_format format,
modes->accumGreenBits = 16 * j;
modes->accumBlueBits = 16 * j;
modes->accumAlphaBits = (masks[3] != 0) ? 16 * j : 0;
- modes->visualRating = (j == 0) ? GLX_NONE : GLX_SLOW_CONFIG;
modes->stencilBits = stencil_bits[k];
modes->depthBits = depth_bits[k];
@@ -447,9 +446,7 @@ driGetConfigAttribIndex(const __DRIconfig *config,
*value |= __DRI_ATTRIB_FLOAT_BIT;
break;
case __DRI_ATTRIB_CONFIG_CAVEAT:
- if (config->modes.visualRating == GLX_NON_CONFORMANT_CONFIG)
- *value = __DRI_ATTRIB_NON_CONFORMANT_CONFIG;
- else if (config->modes.visualRating == GLX_SLOW_CONFIG)
+ if (config->modes.accumRedBits != 0)
*value = __DRI_ATTRIB_SLOW_BIT;
else
*value = 0;
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 33f87b2ee80..e84ec6b939d 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -170,9 +170,6 @@ struct gl_config
GLint depthBits;
GLint stencilBits;
- /* EXT_visual_rating / GLX 1.2 */
- GLint visualRating;
-
/* ARB_multisample / SGIS_multisample */
GLint sampleBuffers;
GLuint samples;