From b37a084357dd08573b86d6d8c5ba43d65bdc1bd7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 2 Feb 2002 21:40:33 +0000 Subject: Converted line drawing over to new span code, pb no longer used. Big clean-up of line drawing code. Removed many obsolete span processing functions. --- src/mesa/swrast/s_texture.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/mesa/swrast/s_texture.c') diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index 0ed753e967..882a6ad178 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -1,4 +1,4 @@ -/* $Id: s_texture.c,v 1.48 2002/01/28 04:25:56 brianp Exp $ */ +/* $Id: s_texture.c,v 1.49 2002/02/02 21:40:34 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -35,7 +35,6 @@ #include "teximage.h" #include "s_context.h" -#include "s_pb.h" #include "s_texture.h" @@ -3043,7 +3042,7 @@ _swrast_texture_fragments( GLcontext *ctx, GLuint texUnit, GLuint n, if (textureUnit->_Current) { /* XXX need this? */ const struct gl_texture_object *curObj = textureUnit->_Current; - GLchan texel[PB_SIZE][4]; + GLchan texel[MAX_WIDTH][4]; if (textureUnit->LodBias != 0.0F) { /* apply LOD bias, but don't clamp yet */ @@ -3096,10 +3095,10 @@ _swrast_multitexture_fragments( GLcontext *ctx, struct sw_span *span ) { if (ctx->Texture._ReallyEnabled & ~TEXTURE0_ANY) { /* multitexture */ - GLchan primary_rgba[PB_SIZE][4]; + GLchan primary_rgba[MAX_WIDTH][4]; GLuint unit; - ASSERT(span->end < PB_SIZE); + ASSERT(span->end < MAX_WIDTH); /* save copy of the span colors (the GL_PRIMARY_COLOR) */ MEMCPY(primary_rgba, span->color.rgba, 4 * span->end * sizeof(GLchan)); -- cgit v1.2.3