radeon: fix pointer dangling
[mesa.git] / src / mesa / drivers / dri / r300 / r300_texstate.c
index 30efc0b6dbcd9b94dcf6aca080e80f88c6d91916..4fea82289106d564aff25c98a1dcf26a16f4f254 100644 (file)
@@ -510,10 +510,6 @@ void r300SetTexBuffer(__DRIcontext *pDRICtx, GLint target, __DRIdrawable *dPriv)
     if (t->mt) {
         t->mt = NULL;
     }
-    if (rImage->bo) {
-        radeon_bo_unref(rImage->bo);
-        rImage->bo = NULL;
-    }
     if (rImage->mt) {
         r300_miptree_unreference(rImage->mt);
         rImage->mt = NULL;