summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-02-16 23:44:46 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-02-16 23:44:46 +0000
commit8baae48fb7e8cdc3490b9e090c1a7e321b243992 (patch)
treed307fc572c02c04ec5fc8dd33e17fd57fb3a97ee /src
parentf204c9d2bbf7351420054494fe2f90031f572f11 (diff)
removed dead code
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_texture.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index 0f1c5cdc96..07e005b150 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.51 2002/02/15 16:32:06 brianp Exp $ */
+/* $Id: s_texture.c,v 1.52 2002/02/16 23:44:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -3042,23 +3042,12 @@ _swrast_texture_fragments( GLcontext *ctx, GLuint texUnit, GLuint n,
}
}
- /* Sample the texture. */
-#if 000
- if (curObj->Image[curObj->BaseLevel]->Format == GL_DEPTH_COMPONENT) {
- /* depth texture */
- sample_depth_texture(ctx, texUnit, textureUnit->_Current,
- n, texcoords, lambda, texel);
- }
- else {
- /* color texture */
-#endif
- SWRAST_CONTEXT(ctx)->TextureSample[texUnit]( ctx, texUnit,
- textureUnit->_Current,
- n, texcoords,
- lambda, texel );
-#if 0
- }
-#endif
+ /* Sample the texture for n fragments */
+ SWRAST_CONTEXT(ctx)->TextureSample[texUnit]( ctx, texUnit,
+ textureUnit->_Current,
+ n, texcoords,
+ lambda, texel );
+
apply_texture( ctx, textureUnit, n, primary_rgba,
(const GLchan (*)[4]) texel, rgba );
}