From 127dd7c88cde0953186587a95198b7d2e461cd37 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 13 Nov 2016 17:57:43 +0100 Subject: [PATCH] Examples: Vulkan: Coding style fixes (#910) --- examples/vulkan_example/main.cpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/examples/vulkan_example/main.cpp b/examples/vulkan_example/main.cpp index b0535e84a..8116e08c2 100644 --- a/examples/vulkan_example/main.cpp +++ b/examples/vulkan_example/main.cpp @@ -217,10 +217,12 @@ static void setup_vulkan(GLFWwindow* window) { uint32_t count; vkGetPhysicalDeviceQueueFamilyProperties(g_Gpu, &count, NULL); - VkQueueFamilyProperties *queues = (VkQueueFamilyProperties*)malloc(sizeof(VkQueueFamilyProperties)*count); + VkQueueFamilyProperties* queues = (VkQueueFamilyProperties*)malloc(sizeof(VkQueueFamilyProperties) * count); vkGetPhysicalDeviceQueueFamilyProperties(g_Gpu, &count, queues); - for(uint32_t i=0; i