From e92b5e5f5446fbf9c976cf6943bc50a48bce8c31 Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Tue, 20 Oct 2015 13:01:07 -0600 Subject: demos: check return value from vkQueueWaitSemaphore --- demos/cube.c | 3 ++- demos/tri.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/demos/cube.c b/demos/cube.c index 12de7f54..8a2b2235 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -622,7 +622,8 @@ static void demo_draw(struct demo *demo) // that the image won't be rendered to until the presentation // engine has fully released ownership to the application, and it is // okay to render to the image. - vkQueueWaitSemaphore(demo->queue, presentCompleteSemaphore); + err = vkQueueWaitSemaphore(demo->queue, presentCompleteSemaphore); + assert(!err); // FIXME/TODO: DEAL WITH VK_IMAGE_LAYOUT_PRESENT_SOURCE_KHR err = vkQueueSubmit(demo->queue, 1, &demo->buffers[demo->current_buffer].cmd, diff --git a/demos/tri.c b/demos/tri.c index ef9ff42b..a749f421 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -441,7 +441,8 @@ static void demo_draw(struct demo *demo) // that the image won't be rendered to until the presentation // engine has fully released ownership to the application, and it is // okay to render to the image. - vkQueueWaitSemaphore(demo->queue, presentCompleteSemaphore); + err = vkQueueWaitSemaphore(demo->queue, presentCompleteSemaphore); + assert(!err); // FIXME/TODO: DEAL WITH VK_IMAGE_LAYOUT_PRESENT_SOURCE_KHR demo_draw_build_cmd(demo); -- cgit v1.2.3