diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/common/spantmp2.h | 6 |
1 files 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 ); } } |