remove unneeded code
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 5 Feb 2005 17:38:13 +0000 (17:38 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 5 Feb 2005 17:38:13 +0000 (17:38 +0000)
src/mesa/drivers/dri/tdfx/tdfx_context.c

index e251c03a1ca467cc916918f2734761b5232ab512..2a9e23a1a6f5f32c5404291c00972d185cad2c4b 100644 (file)
@@ -561,14 +561,6 @@ tdfxDestroyContext( __DRIcontextPrivate *driContextPriv )
          /* This share group is about to go away, free our private
           * texture object data.
           */
-#if 0
-         struct gl_texture_object *tObj;
-         tObj = fxMesa->glCtx->Shared->TexObjectList;
-         while (tObj) {
-            tdfxTMFreeTexture(fxMesa, tObj);
-            tObj = tObj->Next;
-         }
-#else
          struct _mesa_HashTable *textures = fxMesa->glCtx->Shared->TexObjects;
          GLuint id;
          for (id = _mesa_HashFirstEntry(textures);
@@ -578,7 +570,6 @@ tdfxDestroyContext( __DRIcontextPrivate *driContextPriv )
                = (struct gl_texture_object *) _mesa_HashLookup(textures, id);
             tdfxTMFreeTexture(fxMesa, tObj);
          }
-#endif
       }
 
       tdfxTMClose(fxMesa);  /* free texture memory */