From c44192d5d995b498cbeabc138d2f98f57a88559f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 8 Sep 2017 17:14:13 +1000 Subject: [PATCH] hello-tool: use make_owned for one queue --- tools/hello.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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");