diff options
author | Brian Paul <[email protected]> | 2000-09-07 15:45:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-09-07 15:45:26 +0000 |
commit | c4c639c9a46967678725370cb9824031a068633c (patch) | |
tree | f0008c2a00c6f5f65cc4800b87a560a39551b569 /src/mesa/main/buffers.c | |
parent | 18f73b622ffa1d1cebea5556b9ebe53a9adc31ac (diff) |
Removed ctx->Driver.LogicOp().
ctx->Driver.Index/ColorMask() now return void.
Removed SWmasking and SWLogicOpEnabled variables.
LogicOps and color/index masking are no longer special-case device
driver functions. The Xlib driver was the only driver that used
them. Things are more uniform now.
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 566afed929a..dd87009031f 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -142,6 +142,7 @@ clear_color_buffer(GLcontext *ctx) const GLint y = ctx->DrawBuffer->Ymin; const GLint height = ctx->DrawBuffer->Ymax - ctx->DrawBuffer->Ymin + 1; const GLint width = ctx->DrawBuffer->Xmax - ctx->DrawBuffer->Xmin + 1; + const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask); if (ctx->Visual->RGBAflag) { /* RGBA mode */ @@ -152,7 +153,7 @@ clear_color_buffer(GLcontext *ctx) GLubyte span[MAX_WIDTH][4]; GLint i; - ASSERT(!ctx->Color.SWmasking); + ASSERT(colorMask == 0xffffffff); for (i = 0; i < width; i++) { span[i][RCOMP] = r; @@ -201,6 +202,7 @@ clear_color_buffer(GLcontext *ctx) static void clear_color_buffers(GLcontext *ctx) { + const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask); GLuint bufferBit; /* loop over four possible dest color buffers */ @@ -219,7 +221,7 @@ clear_color_buffers(GLcontext *ctx) (void) (*ctx->Driver.SetDrawBuffer)( ctx, GL_BACK_RIGHT); } - if (ctx->Color.SWmasking) { + if (colorMask != 0xffffffff) { clear_color_buffer_with_masking(ctx); } else { |