diff options
author | Dave Airlie <airlied@redhat.com> | 2009-02-03 12:38:31 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-02-03 12:38:31 +1000 |
commit | 4c078cfbad82126108081350b9326228aa2da46d (patch) | |
tree | a8e6a9a90253302516187e1677f26598fe32f35b /src/mesa/drivers/dri/radeon | |
parent | d9cf1319252e053a894dd49583064e4cd063d119 (diff) |
radeon: add a reference to the static buffers so they don't get deleted
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_bo_legacy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c b/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c index 07af01fc40..71fe27609b 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; } |