summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-12 19:39:07 -0700
committerKeith Packard <keithp@keithp.com>2017-10-12 19:39:07 -0700
commitd0887707a2923ba9fa9f781399f4c9096d845445 (patch)
tree697832ad48bbc7d12791eaeb7e467a43f5c02dc7
parentdeee5ef476550fcb1ae8e67942340641ff6c9aee (diff)
Check lease API returns
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--cube.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/cube.c b/cube.c
index 99848e7..dce3b83 100644
--- a/cube.c
+++ b/cube.c
@@ -3168,6 +3168,7 @@ static VkBool32 fill_in_display_info(struct demo *demo)
xcb_screen_iterator_t iter;
Display *dpy = XOpenDisplay(NULL);
int scr = DefaultScreen(dpy);
+ VkResult err;
demo->connection = XGetXCBConnection(dpy);
@@ -3250,14 +3251,18 @@ static VkBool32 fill_in_display_info(struct demo *demo)
printf("Using output 0x%x\n", output);
- m_pGetRandROutputDisplayEXT(demo->gpu,
- demo->display,
- output,
- &khr_display);
+ err = m_pGetRandROutputDisplayEXT(demo->gpu,
+ demo->display,
+ output,
+ &khr_display);
+
+ assert (!err);
+
+ err = m_pAcquireXlibDisplayEXT(demo->gpu,
+ demo->display,
+ khr_display);
- m_pAcquireXlibDisplayEXT(demo->gpu,
- demo->display,
- khr_display);
+ assert (!err);
return 1;
}