diff --git a/tools/hello.cpp b/tools/hello.cpp index 3f76fb9..c7ab837 100644 --- a/tools/hello.cpp +++ b/tools/hello.cpp @@ -291,8 +291,7 @@ main (void) return v; }); - auto _graphics_queue = ldevice.queue (graphics_queue_id); - auto graphics_queue = &_graphics_queue; + auto graphics_queue = cruft::vk::make_owned (ldevice, graphics_queue_id, 0); auto present_queue = ldevice.queue (present_queue_id); auto vert_module = create_shader (ldevice, "./hello.vert.spv");