diff options
author | Brian Paul <[email protected]> | 2005-09-21 03:35:08 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-21 03:35:08 +0000 |
commit | 978ef2bb6d9ca4996a24f95820a699e22c84f70b (patch) | |
tree | 3108bab719321d1064762fb4ab08080210e3d359 /src/mesa/main/context.c | |
parent | 3e37bafab0a339021354b9c78f983d05d433d735 (diff) |
Remove ACCUM_BITS.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index d660dfd8fe3..9db0b87ec10 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; |