diff options
author | Brian <[email protected]> | 2007-08-01 12:58:38 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-01 12:58:38 -0600 |
commit | fb206809ba2a131fd9034e10a00592f2d0d81fce (patch) | |
tree | 16f5f207e20fdb15e69d6bdca9b078fb425cbe04 /src/mesa/main | |
parent | e99b673cb062a2fead92d1d7d373926d148ade71 (diff) |
Checkpoint: glClear changes - working, bug very rough.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/buffers.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 0e6ca8ea1c2..bb019b5998a 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -38,6 +38,8 @@ #include "fbobject.h" #include "state.h" +#include "state_tracker/st_draw.h" + #define BAD_MASK ~0u @@ -176,7 +178,15 @@ _mesa_Clear( GLbitfield mask ) } ASSERT(ctx->Driver.Clear); +#if 0 ctx->Driver.Clear(ctx, bufferMask); +#else + st_clear(ctx->st, + (mask & GL_COLOR_BUFFER_BIT) ? GL_TRUE : GL_FALSE, + (bufferMask & BUFFER_BIT_DEPTH) ? GL_TRUE : GL_FALSE, + (bufferMask & BUFFER_BIT_STENCIL) ? GL_TRUE : GL_FALSE, + (bufferMask & BUFFER_BIT_ACCUM) ? GL_TRUE : GL_FALSE); +#endif } } |