Checkpoint: glClear changes - working, bug very rough.

This commit is contained in:
Brian
2007-08-01 12:58:38 -06:00
parent e99b673cb0
commit fb206809ba
11 changed files with 213 additions and 22 deletions

View File

@@ -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
}
}