Fix examples

This commit is contained in:
Pierre Krieger 2017-05-15 11:02:00 +02:00
parent 2b67ced430
commit c8fc08738e
3 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ fn main() {
.build().unwrap();
let future = future
.then_execute(queue.clone(), cb)
.then_execute(queue.clone(), cb).unwrap()
.then_swapchain_present(queue.clone(), swapchain.clone(), image_num)
.then_signal_fence_and_flush().unwrap();
submissions.push(Box::new(future) as Box<_>);

View File

@ -194,7 +194,7 @@ fn main() {
.build().unwrap();
let future = future
.then_execute(queue.clone(), command_buffer)
.then_execute(queue.clone(), command_buffer).unwrap()
.then_swapchain_present(queue.clone(), swapchain.clone(), image_num)
.then_signal_fence_and_flush().unwrap();
submissions.push(Box::new(future) as Box<_>);

View File

@ -405,7 +405,7 @@ fn main() {
.build().unwrap();
let future = future
.then_execute(queue.clone(), command_buffer)
.then_execute(queue.clone(), command_buffer).unwrap()
// The color output is now expected to contain our triangle. But in order to show it on
// the screen, we have to *present* the image by calling `present`.