[Bf-blender-cvs] [b43e11deda6] temp-vulkan-shader: Don't use curly brackets to group code.

Jeroen Bakker noreply at git.blender.org
Tue Nov 22 17:01:40 CET 2022


Commit: b43e11deda64ad51e198f929b0e01c39fabc40f4
Author: Jeroen Bakker
Date:   Tue Nov 22 13:17:08 2022 +0100
Branches: temp-vulkan-shader
https://developer.blender.org/rBb43e11deda64ad51e198f929b0e01c39fabc40f4

Don't use curly brackets to group code.

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

M	source/blender/gpu/vulkan/vk_context.cc

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

diff --git a/source/blender/gpu/vulkan/vk_context.cc b/source/blender/gpu/vulkan/vk_context.cc
index 15f1908d217..dff6a3f1346 100644
--- a/source/blender/gpu/vulkan/vk_context.cc
+++ b/source/blender/gpu/vulkan/vk_context.cc
@@ -24,15 +24,14 @@ VKContext::VKContext(void *ghost_window, void *ghost_context)
                          &device_,
                          &graphic_queue_familly_);
 
-  {
-    VmaAllocatorCreateInfo info = {};
-    /* Should use same vulkan version as GHOST. */
-    info.vulkanApiVersion = VK_API_VERSION_1_2;
-    info.physicalDevice = physical_device_;
-    info.device = device_;
-    info.instance = instance_;
-    vmaCreateAllocator(&info, &mem_allocator_);
-  }
+  /* Initialize the memory allocator. */
+  VmaAllocatorCreateInfo info = {};
+  /* Should use same vulkan version as GHOST. */
+  info.vulkanApiVersion = VK_API_VERSION_1_2;
+  info.physicalDevice = physical_device_;
+  info.device = device_;
+  info.instance = instance_;
+  vmaCreateAllocator(&info, &mem_allocator_);
 }
 
 void VKContext::activate()



More information about the Bf-blender-cvs mailing list