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)) {