[Bf-blender-cvs] [b271ed8ac9d] temp-ghost-vulkan: Code style struct initialization.

Jeroen Bakker noreply at git.blender.org
Fri Nov 18 11:45:32 CET 2022


Commit: b271ed8ac9d2c8d66b5d3c2624dc356d11de004b
Author: Jeroen Bakker
Date:   Fri Nov 18 11:35:44 2022 +0100
Branches: temp-ghost-vulkan
https://developer.blender.org/rBb271ed8ac9d2c8d66b5d3c2624dc356d11de004b

Code style struct initialization.

===================================================================

M	intern/ghost/intern/GHOST_ContextVK.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextVK.cpp b/intern/ghost/intern/GHOST_ContextVK.cpp
index 9ef541b590f..df860d4b96d 100644
--- a/intern/ghost/intern/GHOST_ContextVK.cpp
+++ b/intern/ghost/intern/GHOST_ContextVK.cpp
@@ -259,7 +259,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers()
 
   VK_CHECK(vkQueueWaitIdle(m_graphic_queue));
 
-  VkPresentInfoKHR present_info{};
+  VkPresentInfoKHR present_info = {};
   present_info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;
   present_info.waitSemaphoreCount = 1;
   present_info.pWaitSemaphores = &m_render_finished_semaphores[m_currentFrame];



More information about the Bf-blender-cvs mailing list