From 978ef2bb6d9ca4996a24f95820a699e22c84f70b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 21 Sep 2005 03:35:08 +0000 Subject: Remove ACCUM_BITS. --- src/mesa/main/config.h | 4 ---- src/mesa/main/context.c | 16 ++++------------ src/mesa/main/mtypes.h | 6 ------ 3 files changed, 4 insertions(+), 22 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 6fddbd116e..44de635c3f 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -234,10 +234,6 @@ */ #define TRIANGLE_WALK_DOUBLE 0 -/** - * Bits per accumulation buffer color component: 8, 16 or 32 - */ -#define ACCUM_BITS 16 /** * Bits per depth buffer value. diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index d660dfd8fe..9db0b87ec1 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -527,18 +527,10 @@ _mesa_initialize_visual( GLvisual *vis, if (stencilBits < 0 || stencilBits > STENCIL_BITS) { return GL_FALSE; } - if (accumRedBits < 0 || accumRedBits > ACCUM_BITS) { - return GL_FALSE; - } - if (accumGreenBits < 0 || accumGreenBits > ACCUM_BITS) { - return GL_FALSE; - } - if (accumBlueBits < 0 || accumBlueBits > ACCUM_BITS) { - return GL_FALSE; - } - if (accumAlphaBits < 0 || accumAlphaBits > ACCUM_BITS) { - return GL_FALSE; - } + assert(accumRedBits >= 0); + assert(accumGreenBits >= 0); + assert(accumBlueBits >= 0); + assert(accumAlphaBits >= 0); vis->rgbMode = rgbFlag; vis->doubleBufferMode = dbFlag; diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a076f82a22..6ed7a22807 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -66,12 +66,6 @@ #endif -#if ACCUM_BITS != 16 -/* Software accum done with GLshort at this time */ -# error "illegal number of accumulation bits" -#endif - - /** * Stencil buffer data type. */ -- cgit v1.2.3