demos: check return value from vkQueueWaitSemaphore
authorTony Barbour <tony@LunarG.com>
Tue, 20 Oct 2015 19:01:07 +0000 (13:01 -0600)
committerTony Barbour <tony@LunarG.com>
Wed, 21 Oct 2015 22:45:25 +0000 (16:45 -0600)
demos/cube.c
demos/tri.c

index 12de7f5..8a2b223 100644 (file)
@@ -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,
index ef9ff42..a749f42 100644 (file)
@@ -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);