From 4c078cfbad82126108081350b9326228aa2da46d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 3 Feb 2009 12:38:31 +1000 Subject: [PATCH] radeon: add a reference to the static buffers so they don't get deleted --- src/mesa/drivers/dri/radeon/radeon_bo_legacy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c b/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c index 07af01fc402..71fe27609b3 100644 --- a/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c +++ b/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c @@ -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; } -- 2.30.2