summaryrefslogtreecommitdiff
path: root/tests/modedemo
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modedemo')
-rw-r--r--tests/modedemo/demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modedemo/demo.c b/tests/modedemo/demo.c
index db51cd66..00020bde 100644
--- a/tests/modedemo/demo.c
+++ b/tests/modedemo/demo.c
@@ -483,7 +483,7 @@ drmModeFBPtr createFB(int fd, drmModeResPtr res)
goto err;
}
- ret = drmModeAddFB(fd, SIZE_X, SIZE_Y, 32, 32, PITCH * 4, &bo, &fb);
+ ret = drmModeAddFB(fd, SIZE_X, SIZE_Y, 32, 32, PITCH * 4, bo->handle, &fb);
if (ret)
goto err_bo;