summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/xlib/xm_dd.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-31 15:08:19 -0600
committerBrian <[email protected]>2007-10-31 15:08:19 -0600
commit017d08a5e040ee476b19d672c17090eaca7fa918 (patch)
treeee4cbac36875cdd64cc314dce102da9b79a7beb0 /src/mesa/pipe/xlib/xm_dd.c
parent4411614fed938ba9495f43c01de1c3099febd860 (diff)
get rid of xmesa_clear_buffers()
Diffstat (limited to 'src/mesa/pipe/xlib/xm_dd.c')
-rw-r--r--src/mesa/pipe/xlib/xm_dd.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/mesa/pipe/xlib/xm_dd.c b/src/mesa/pipe/xlib/xm_dd.c
index 7a9d6648400..a07f17bfea6 100644
--- a/src/mesa/pipe/xlib/xm_dd.c
+++ b/src/mesa/pipe/xlib/xm_dd.c
@@ -273,45 +273,6 @@ clear_nbit_ximage(GLcontext *ctx, struct xmesa_renderbuffer *xrb, GLuint value)
}
-
-void
-xmesa_clear_buffers(GLcontext *ctx, GLbitfield buffers, GLuint value)
-{
- if (ctx->DrawBuffer->Name == 0) {
- /* this is a window system framebuffer */
- const GLuint *colorMask = (GLuint *) &ctx->Color.ColorMask;
- XMesaBuffer b = XMESA_BUFFER(ctx->DrawBuffer);
-
- /* we can't handle color or index masking */
- if (*colorMask == 0xffffffff && ctx->Color.IndexMask == 0xffffffff) {
- if (buffers & BUFFER_BIT_FRONT_LEFT) {
- /* clear front color buffer */
- struct gl_renderbuffer *frontRb
- = ctx->DrawBuffer->Attachment[BUFFER_FRONT_LEFT].Renderbuffer;
- if (b->frontxrb == xmesa_renderbuffer(frontRb)) {
- /* renderbuffer is not wrapped - great! */
- b->frontxrb->clearFunc(ctx, b->frontxrb, value);
- buffers &= ~BUFFER_BIT_FRONT_LEFT;
- }
- else {
- /* we can't directly clear an alpha-wrapped color buffer */
- }
- }
- if (buffers & BUFFER_BIT_BACK_LEFT) {
- /* clear back color buffer */
- struct gl_renderbuffer *backRb
- = ctx->DrawBuffer->Attachment[BUFFER_BACK_LEFT].Renderbuffer;
- if (b->backxrb == xmesa_renderbuffer(backRb)) {
- /* renderbuffer is not wrapped - great! */
- b->backxrb->clearFunc(ctx, b->backxrb, value);
- buffers &= ~BUFFER_BIT_BACK_LEFT;
- }
- }
- }
- }
-}
-
-
static void
clear_color_HPCR_ximage( GLcontext *ctx, const GLfloat color[4] )
{