diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-10-20 13:01:07 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2015-10-21 16:45:25 -0600 |
| commit | e92b5e5f5446fbf9c976cf6943bc50a48bce8c31 (patch) | |
| tree | ce60bbc0438cbf150fa6e714eeb8567ced38c772 | |
| parent | c8a5989b8f2ec4db661b974ffb21eb75a54d9713 (diff) | |
| download | usermoji-e92b5e5f5446fbf9c976cf6943bc50a48bce8c31.tar.xz | |
demos: check return value from vkQueueWaitSemaphore
| -rw-r--r-- | demos/cube.c | 3 | ||||
| -rw-r--r-- | 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); |
