From b2e148976216122f90b0a071730c237004b5e297 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 9 Sep 2017 13:43:17 +1000 Subject: [PATCH] hello-tool: use make_owned for all queues --- tools/hello.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hello.cpp b/tools/hello.cpp index c7ab837..30796be 100644 --- a/tools/hello.cpp +++ b/tools/hello.cpp @@ -292,7 +292,7 @@ main (void) }); auto graphics_queue = cruft::vk::make_owned (ldevice, graphics_queue_id, 0); - auto present_queue = ldevice.queue (present_queue_id); + auto present_queue = cruft::vk::make_owned (ldevice, present_queue_id, 0); auto vert_module = create_shader (ldevice, "./hello.vert.spv"); auto frag_module = create_shader (ldevice, "./hello.frag.spv"); @@ -644,7 +644,7 @@ main (void) present_info.pImageIndices = &image_index; present_info.pResults = nullptr; - cruft::vk::error::try_func (vkQueuePresentKHR, present_queue.native (), &present_info); + cruft::vk::error::try_func (vkQueuePresentKHR, present_queue->native (), &present_info); LOG_INFO ("entering runloop"); while (!glfwWindowShouldClose (window)) {