diff options
author | Brian Paul <[email protected]> | 2001-02-13 23:58:38 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-02-13 23:58:38 +0000 |
commit | 88c5ceb6500d6cb442b4e675f0d7928ddd99b1cf (patch) | |
tree | be116b733948cfdbed4b2c5d3514fe63707c8ff0 /src/mesa | |
parent | c3a4dbfbd693de951ec0d6dbd0a9f0613839badb (diff) |
fixed an assertion
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/swrast/s_buffers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_buffers.c b/src/mesa/swrast/s_buffers.c index bff5da00886..c64bdccb3e6 100644 --- a/src/mesa/swrast/s_buffers.c +++ b/src/mesa/swrast/s_buffers.c @@ -1,4 +1,4 @@ -/* $Id: s_buffers.c,v 1.4 2001/01/24 00:04:59 brianp Exp $ */ +/* $Id: s_buffers.c,v 1.5 2001/02/13 23:58:38 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -123,7 +123,8 @@ clear_color_buffer(GLcontext *ctx) } else { /* Color index mode */ - ASSERT(ctx->Color.IndexMask == ~0); + ASSERT((ctx->Color.IndexMask & ((1 << ctx->Visual.indexBits) - 1)) + == ((1 << ctx->Visual.indexBits) - 1)); if (ctx->Visual.indexBits == 8) { /* 8-bit clear */ GLubyte span[MAX_WIDTH]; |