From ba3d9d0ce958dfc6161de41d9423a4b9547fb35c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 27 Mar 2000 19:08:40 +0000 Subject: removed tfxMipMapLevel's used and translate fields, initial teximage clean-up --- src/mesa/drivers/glide/fxtexman.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/mesa/drivers/glide/fxtexman.c') diff --git a/src/mesa/drivers/glide/fxtexman.c b/src/mesa/drivers/glide/fxtexman.c index 87f309adc3..bc20fa10bc 100644 --- a/src/mesa/drivers/glide/fxtexman.c +++ b/src/mesa/drivers/glide/fxtexman.c @@ -651,12 +651,11 @@ void fxTMFreeTexture(fxMesaContext fxMesa, struct gl_texture_object *tObj) fxTMMoveOutTM(fxMesa, tObj); - for(i=0; imipmapLevel[i].used && - ti->mipmapLevel[i].translated) + for (i=0; imipmapLevel[i].data) { FREE(ti->mipmapLevel[i].data); - - (void)ti->mipmapLevel[i].data; + ti->mipmapLevel[i].data = NULL; + } } switch (ti->whichTMU) { case FX_TMU0: -- cgit v1.2.3