From: Dave Airlie Date: Tue, 3 Feb 2009 02:38:31 +0000 (+1000) Subject: radeon: add a reference to the static buffers so they don't get deleted X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c078cfbad82126108081350b9326228aa2da46d;p=mesa.git radeon: add a reference to the static buffers so they don't get deleted --- 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; }