diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-02-02 21:40:33 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-02-02 21:40:33 +0000 |
commit | b37a084357dd08573b86d6d8c5ba43d65bdc1bd7 (patch) | |
tree | e9b71cecbc7500a5c6144c79cda6ac2a7a7e3558 /src/mesa/swrast/s_texture.c | |
parent | 733a4b602bbbfda83ee03b7ae4f3737bbe659034 (diff) |
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.
Diffstat (limited to 'src/mesa/swrast/s_texture.c')
-rw-r--r-- | src/mesa/swrast/s_texture.c | 9 |
1 files changed, 4 insertions, 5 deletions
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)); |