diff options
author | Keith Packard <keithp@keithp.com> | 2017-10-12 19:39:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-10-12 19:39:07 -0700 |
commit | d0887707a2923ba9fa9f781399f4c9096d845445 (patch) | |
tree | 697832ad48bbc7d12791eaeb7e467a43f5c02dc7 | |
parent | deee5ef476550fcb1ae8e67942340641ff6c9aee (diff) |
Check lease API returns
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | cube.c | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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; } |