aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/cube.c3
-rw-r--r--demos/tri.c3
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);