From cc78e40172589a2154f9f74c5ff4461b93db14fd Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 1 Nov 2004 20:27:43 +0000 Subject: Nicolai's sw-clipspan-fixes.patch --- src/mesa/drivers/dri/common/stenciltmp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/dri/common/stenciltmp.h') diff --git a/src/mesa/drivers/dri/common/stenciltmp.h b/src/mesa/drivers/dri/common/stenciltmp.h index 365e9811ac..285d8e5291 100644 --- a/src/mesa/drivers/dri/common/stenciltmp.h +++ b/src/mesa/drivers/dri/common/stenciltmp.h @@ -41,13 +41,13 @@ static void TAG(WriteStencilSpan)( GLcontext *ctx, if (mask) { - for (;i0;i++,x1++,n1--) if (mask[i]) WRITE_STENCIL( x1, y, stencil[i] ); } else { - for (;i0;i++,x1++,n1--) WRITE_STENCIL( x1, y, stencil[i] ); } } @@ -107,8 +107,8 @@ static void TAG(ReadStencilSpan)( GLcontext *ctx, { GLint i = 0; CLIPSPAN(x,y,n,x1,n1,i); - for (;i0;i++,n1--) + READ_STENCIL( stencil[i], (x+i), y ); } HW_ENDCLIPLOOP(); } -- cgit v1.2.3