From 12b53f207919bd02506bd3b337ab501ee2c8092b Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 15 Oct 2004 23:46:53 +0000 Subject: [PATCH] Fixed a few places that should have been using GET_SRC_PTR. --- src/mesa/drivers/dri/common/spantmp2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/common/spantmp2.h b/src/mesa/drivers/dri/common/spantmp2.h index ce0a66de702..01d7fea0c52 100644 --- a/src/mesa/drivers/dri/common/spantmp2.h +++ b/src/mesa/drivers/dri/common/spantmp2.h @@ -393,7 +393,7 @@ static void TAG2(ReadRGBASpan,_MMX)( const GLcontext *ctx, CLIPSPAN(x,y,n,x1,n1,i); { - const char * src = (read_buf + x1*4 + y*pitch); + const char * src = GET_SRC_PTR( x1, y ); _generic_read_RGBA_span_BGRA8888_REV_MMX( src, rgba[i], n1 ); } } @@ -427,7 +427,7 @@ static void TAG2(ReadRGBASpan,_SSE2)( const GLcontext *ctx, CLIPSPAN(x,y,n,x1,n1,i); { - const char * src = (read_buf + x1*4 + y*pitch); + const char * src = GET_SRC_PTR( x1, y ); _generic_read_RGBA_span_BGRA8888_REV_SSE2( src, rgba[i], n1 ); } } @@ -464,7 +464,7 @@ static void TAG2(ReadRGBASpan,_SSE)( const GLcontext *ctx, CLIPSPAN(x,y,n,x1,n1,i); { - const char * src = (read_buf + x1*4 + y*pitch); + const char * src = GET_SRC_PTR( x1, y ); _generic_read_RGBA_span_BGRA8888_REV_SSE( src, rgba[i], n1 ); } } -- 2.30.2