From 8fd9f1748d12751683cf8039401a7f7f66ab73fa Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 6 Feb 2001 00:03:47 +0000 Subject: misc updates to match latest device driver changes --- src/mesa/drivers/svga/svgamesa15.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/svga/svgamesa15.c') 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, -- cgit v1.2.3