summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/svga/svgamesa15.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-02-06 00:03:47 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-02-06 00:03:47 +0000
commit8fd9f1748d12751683cf8039401a7f7f66ab73fa (patch)
treecafe046dcf6a79e4682ea334246bde0fbc1f5105 /src/mesa/drivers/svga/svgamesa15.c
parent228748bc494b391d2444f96789591803e72779e6 (diff)
misc updates to match latest device driver changes
Diffstat (limited to 'src/mesa/drivers/svga/svgamesa15.c')
-rw-r--r--src/mesa/drivers/svga/svgamesa15.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/drivers/svga/svgamesa15.c b/src/mesa/drivers/svga/svgamesa15.c
index 0f8ebd330b..89ff6445be 100644
--- a/src/mesa/drivers/svga/svgamesa15.c
+++ b/src/mesa/drivers/svga/svgamesa15.c
@@ -1,4 +1,4 @@
-/* $Id: svgamesa15.c,v 1.8 2001/01/24 00:04:59 brianp Exp $ */
+/* $Id: svgamesa15.c,v 1.9 2001/02/06 00:03:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -35,6 +35,8 @@
#include "svgapix.h"
#include "svgamesa15.h"
+#include "swrast/swrast.h"
+
static void __svga_drawpixel15(int x, int y, unsigned long c)
{
@@ -60,8 +62,8 @@ void __clear_color15( GLcontext *ctx, const GLchan color[4] )
/* SVGAMesa->clear_hicolor=(red)<<10 | (green)<<5 | (blue);*/
}
-GLbitfield __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all,
- GLint x, GLint y, GLint width, GLint height )
+void __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all,
+ GLint x, GLint y, GLint width, GLint height )
{
int i, j;
@@ -79,6 +81,7 @@ GLbitfield __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all,
__svga_drawpixel15(i,j,SVGAMesa->clear_hicolor);
SVGABuffer.DrawBuffer = tmp;
}
+ mask &= ~DD_FRONT_LEFT_BIT;
}
if (mask & DD_BACK_LEFT_BIT) {
GLshort *shortBuffer=(void *)SVGABuffer.BackBuffer;
@@ -94,8 +97,11 @@ GLbitfield __clear15( GLcontext *ctx, GLbitfield mask, GLboolean all,
__svga_drawpixel15(i,j,SVGAMesa->clear_hicolor);
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_span15( const GLcontext *ctx, GLuint n, GLint x, GLint y,