Initialize vulkan instance in RenderThread
authorDavid Steele <david.steele@samsung.com>
Tue, 11 Dec 2018 01:55:19 +0000 (10:55 +0900)
committerDavid Steele <david.steele@samsung.com>
Tue, 18 Dec 2018 18:34:14 +0000 (18:34 +0000)
Change-Id: I040e98731c09fac9a06322f2d2c1a3139976c2fd
Signed-off-by: David Steele <david.steele@samsung.com>
dali/integration-api/graphics/graphics.cpp

index ee57a04f7d09b827cb1bdee1de14403fc99e517f..048c5902fae017e0b6bb5fadffc6f2690ebd6d8c 100644 (file)
@@ -67,8 +67,6 @@ Graphics::Graphics( const GraphicsCreateInfo& info,
   // create device
   auto impl = Dali::Graphics::MakeUnique<Dali::Graphics::GraphicsImpl>();
 
-  impl->Create();
-
   mGraphicsImpl = std::move(impl);
 }
 
@@ -81,6 +79,8 @@ void Graphics::Initialize()
 
 void Graphics::Create()
 {
+  mGraphicsImpl->Create();
+
   // create device
   mGraphicsImpl->CreateDevice();