Fix uninitialized variable
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Thu, 12 Apr 2018 11:00:56 +0000 (20:00 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Thu, 12 Apr 2018 11:00:56 +0000 (20:00 +0900)
dali/graphics/vulkan/vulkan-swapchain.cpp

index eb82f09..a7c858c 100644 (file)
@@ -84,7 +84,8 @@ struct Swapchain::Impl
     mQueue( presentationQueue ),
     mSurface( surface ),
     mBufferCount( bufferCount ),
-    mFlags( flags )
+    mFlags( flags ),
+    mCurrentBufferIndex( 0u )
   {
     mSwapchainCreateInfoKHR.setSurface( mSurface->GetSurfaceKHR() )
       .setPreTransform( vk::SurfaceTransformFlagBitsKHR::eIdentity )