summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-03-15 17:33:25 +0000
committerBrian Paul <[email protected]>2003-03-15 17:33:25 +0000
commit350353adcd75f94fda63c787c86961716114e0bf (patch)
treed91f40c8a2d55f4f0e3e12d14dc075a8af83b92e /src/mesa/swrast/s_context.c
parentadd99d01ee7bf22e87c2c13b3476f6d70d0b3a7d (diff)
Fix up some fragment program texture enable issues.
Implemented TXD instruction.
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r--src/mesa/swrast/s_context.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index 6ed0c42e4d6..29b73df3657 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -1,4 +1,4 @@
-/* $Id: s_context.c,v 1.46 2003/03/14 15:41:00 brianp Exp $ */
+/* $Id: s_context.c,v 1.47 2003/03/15 17:33:27 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -306,35 +306,6 @@ _swrast_validate_texture_sample( GLcontext *ctx, GLuint texUnit,
}
}
- if (ctx->FragmentProgram.Enabled) {
- ASSERT(ctx->FragmentProgram.Current);
- /* only one target can be referenced per unit per fragment program */
- switch (ctx->FragmentProgram.Current->TexturesUsed[texUnit]) {
- case TEXTURE_1D_BIT:
- tObj = ctx->Texture.Unit[texUnit].Current1D;
- break;
- case TEXTURE_2D_BIT:
- tObj = ctx->Texture.Unit[texUnit].Current2D;
- break;
- case TEXTURE_3D_BIT:
- tObj = ctx->Texture.Unit[texUnit].Current3D;
- break;
- case TEXTURE_CUBE_BIT:
- tObj = ctx->Texture.Unit[texUnit].CurrentCubeMap;
- break;
- case TEXTURE_RECT_BIT:
- tObj = ctx->Texture.Unit[texUnit].CurrentRect;
- break;
- default:
- _mesa_problem(ctx, "Bad texture in _swrast_validate_texture_sample");
- return;
- }
- if (!tObj->Complete) {
- _mesa_test_texobj_completeness(ctx,
- (struct gl_texture_object *) tObj );
- }
- }
-
swrast->TextureSample[texUnit] =
_swrast_choose_texture_sample_func( ctx, tObj );