hello-tool: use make_owned for one queue

This commit is contained in:
Danny Robson 2017-09-08 17:14:13 +10:00
parent 05e53b9161
commit c44192d5d9

View File

@ -291,8 +291,7 @@ main (void)
return v; return v;
}); });
auto _graphics_queue = ldevice.queue (graphics_queue_id); auto graphics_queue = cruft::vk::make_owned<cruft::vk::queue> (ldevice, graphics_queue_id, 0);
auto graphics_queue = &_graphics_queue;
auto present_queue = ldevice.queue (present_queue_id); auto present_queue = ldevice.queue (present_queue_id);
auto vert_module = create_shader (ldevice, "./hello.vert.spv"); auto vert_module = create_shader (ldevice, "./hello.vert.spv");