summaryrefslogtreecommitdiff
path: root/gdri-buf-cmdq.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdri-buf-cmdq.c')
-rw-r--r--gdri-buf-cmdq.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdri-buf-cmdq.c b/gdri-buf-cmdq.c
index 614c473..f9fe278 100644
--- a/gdri-buf-cmdq.c
+++ b/gdri-buf-cmdq.c
@@ -68,12 +68,7 @@ int main()
bufmgr = glamo_bo_manager_gem_ctor(fd);
printf("Allocated a new glamo_bo_manager: 0x%p\n", bufmgr);
- bo = bufmgr->funcs->bo_open(bufmgr,
- 0, /* handle */
- 480*480*2,
- 2,
- GLAMO_GEM_DOMAIN_VRAM,
- 0); /* flags */
+ bo = glamo_bo_open(bufmgr, 0, 480*480*2, 2, GLAMO_GEM_DOMAIN_VRAM, 0);
printf("Allocated a 480x480x2 byte buffer object: 0x%p\n", bo);
printf(" handle = %i\n", bo->handle);
@@ -143,7 +138,7 @@ int main()
}
printf("Copied the buffer to the screen\n");
- bufmgr->funcs->bo_unref(bo);
+ glamo_bo_unref(bo);
glamo_bo_manager_gem_dtor(bufmgr);
printf("Destroyed the glamo_bo_manager.\n");