From aa8abf8081023c00469b6c88760ed0291033eb6e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 16 Sep 2005 04:16:48 +0000 Subject: Rework the texture filtering functions a bit. No need to pass the texture unit number as an argument. --- src/mesa/swrast/s_texcombine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast/s_texcombine.c') diff --git a/src/mesa/swrast/s_texcombine.c b/src/mesa/swrast/s_texcombine.c index 65eccad2e9..2bdd4efaa2 100644 --- a/src/mesa/swrast/s_texcombine.c +++ b/src/mesa/swrast/s_texcombine.c @@ -1123,8 +1123,8 @@ _swrast_texture_span( GLcontext *ctx, struct sw_span *span ) } } - /* Sample the texture (span->end fragments) */ - swrast->TextureSample[unit]( ctx, unit, texUnit->_Current, span->end, + /* Sample the texture (span->end = number of fragments) */ + swrast->TextureSample[unit]( ctx, texUnit->_Current, span->end, (const GLfloat (*)[4]) span->array->texcoords[unit], lambda, texels ); -- cgit v1.2.3