Swapout textures who's space is claimed by a new texture. Don't destroy.
authorFelix Kuehling <fxkuehl@gmx.de>
Mon, 8 Mar 2004 00:34:43 +0000 (00:34 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Mon, 8 Mar 2004 00:34:43 +0000 (00:34 +0000)
This finally really fixes assertion failures in savageBindTexture.
I think the same situation with several contexts is still broken though.

src/mesa/drivers/dri/savage/savagetex.c

index 45d347b0bee520c68394c86c884123aefa77ebcb..0ce2a964652ae7eb12d290440e5714c2a39829e4 100644 (file)
@@ -800,7 +800,7 @@ int savageUploadTexImages( savageContextPtr imesa, savageTextureObjectPtr t )
            return -1;
         }
         
-        savageDestroyTexObj( imesa, imesa->TexObjList[heap].prev );
+        savageSwapOutTexObj( imesa, imesa->TexObjList[heap].prev );
       }
  
       ofs = t->MemBlock->ofs;