summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagetex.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2004-03-08 00:34:43 +0000
committerFelix Kuehling <[email protected]>2004-03-08 00:34:43 +0000
commit446d8d0b86d05089c56d53e9887cdf03574a1441 (patch)
treece56c452d5ef565fcf17ea53eca2b85d05dcabc8 /src/mesa/drivers/dri/savage/savagetex.c
parenta5c68c872ddcac6b844aa666edee72196af93a4a (diff)
Swapout textures who's space is claimed by a new texture. Don't destroy.
This finally really fixes assertion failures in savageBindTexture. I think the same situation with several contexts is still broken though.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagetex.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagetex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savagetex.c b/src/mesa/drivers/dri/savage/savagetex.c
index 45d347b0bee..0ce2a964652 100644
--- a/src/mesa/drivers/dri/savage/savagetex.c
+++ b/src/mesa/drivers/dri/savage/savagetex.c
@@ -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;