summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/svga/svgamesa24.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-02-06 00:03:47 +0000
committerBrian Paul <[email protected]>2001-02-06 00:03:47 +0000
commit8fd9f1748d12751683cf8039401a7f7f66ab73fa (patch)
treecafe046dcf6a79e4682ea334246bde0fbc1f5105 /src/mesa/drivers/svga/svgamesa24.c
parent228748bc494b391d2444f96789591803e72779e6 (diff)
misc updates to match latest device driver changes
Diffstat (limited to 'src/mesa/drivers/svga/svgamesa24.c')
-rw-r--r--src/mesa/drivers/svga/svgamesa24.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mesa/drivers/svga/svgamesa24.c b/src/mesa/drivers/svga/svgamesa24.c
index 0d0c8e74c8f..df1c47be3e8 100644
--- a/src/mesa/drivers/svga/svgamesa24.c
+++ b/src/mesa/drivers/svga/svgamesa24.c
@@ -1,4 +1,4 @@
-/* $Id: svgamesa24.c,v 1.9 2001/01/24 00:04:59 brianp Exp $ */
+/* $Id: svgamesa24.c,v 1.10 2001/02/06 00:03:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -35,6 +35,7 @@
#include "svgapix.h"
#include "svgamesa24.h"
+#include "swrast/swrast.h"
#if 0
@@ -86,8 +87,8 @@ void __clear_color24( GLcontext *ctx, const GLchan color[4] )
/* SVGAMesa->clear_truecolor = red<<16 | green<<8 | blue; */
}
-GLbitfield __clear24( GLcontext *ctx, GLbitfield mask, GLboolean all,
- GLint x, GLint y, GLint width, GLint height )
+void __clear24( GLcontext *ctx, GLbitfield mask, GLboolean all,
+ GLint x, GLint y, GLint width, GLint height )
{
int i,j;
@@ -110,6 +111,7 @@ GLbitfield __clear24( GLcontext *ctx, GLbitfield mask, GLboolean all,
SVGAMesa->clear_blue);
SVGABuffer.DrawBuffer = tmp;
}
+ mask &= ~DD_FRONT_LEFT_BIT;
}
if (mask & DD_BACK_LEFT_BIT) {
if (all) {
@@ -130,8 +132,11 @@ GLbitfield __clear24( GLcontext *ctx, GLbitfield mask, GLboolean all,
SVGAMesa->clear_blue);
SVGABuffer.DrawBuffer = tmp;
}
+ mask &= ~DD_BACK_LEFT_BIT;
}
- return mask & (~(DD_FRONT_LEFT_BIT | DD_BACK_LEFT_BIT));
+
+ if (mask)
+ _swrast_Clear( ctx, mask, all, x, y, width, height );
}
void __write_rgba_span24( const GLcontext *ctx, GLuint n, GLint x, GLint y,