From 350353adcd75f94fda63c787c86961716114e0bf Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 15 Mar 2003 17:33:25 +0000 Subject: Fix up some fragment program texture enable issues. Implemented TXD instruction. --- src/mesa/swrast/s_context.c | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'src/mesa/swrast/s_context.c') diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 6ed0c42e4d..29b73df365 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 ); -- cgit v1.2.3