hello-tool: use make_owned for all queues
This commit is contained in:
parent
8726ca81cb
commit
b2e1489762
@ -292,7 +292,7 @@ main (void)
|
||||
});
|
||||
|
||||
auto graphics_queue = cruft::vk::make_owned<cruft::vk::queue> (ldevice, graphics_queue_id, 0);
|
||||
auto present_queue = ldevice.queue (present_queue_id);
|
||||
auto present_queue = cruft::vk::make_owned<cruft::vk::queue> (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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user