radeon: add a reference to the static buffers so they don't get deleted
authorDave Airlie <airlied@redhat.com>
Tue, 3 Feb 2009 02:38:31 +0000 (12:38 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 3 Feb 2009 02:38:31 +0000 (12:38 +1000)
src/mesa/drivers/dri/radeon/radeon_bo_legacy.c

index 07af01fc4028c523fb11374abaca3753d286f113..71fe27609b36b42831f80b83e371ee1c191b8f9d 100644 (file)
@@ -655,6 +655,7 @@ static struct bo_legacy *radeon_legacy_bo_alloc_static(struct bo_manager_legacy
     if (bo->base.handle > bom->nhandle) {
         bom->nhandle = bo->base.handle + 1;
     }
+    radeon_bo_ref(&(bo->base));
     return bo;
 }