From 997d1bd0eb49e55af38e65c0c5f6a7aec0aee54f Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 27 Feb 2018 23:33:33 +0100 Subject: [PATCH] Examples: NULL pointers for consistency. --- examples/sdl_vulkan_example/main.cpp | 4 ++-- examples/vulkan_example/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/sdl_vulkan_example/main.cpp b/examples/sdl_vulkan_example/main.cpp index b81784df..7772f857 100644 --- a/examples/sdl_vulkan_example/main.cpp +++ b/examples/sdl_vulkan_example/main.cpp @@ -361,7 +361,7 @@ static void setup_vulkan(SDL_Window* window, const char** extensions, uint32_t e g_PresentMode = VK_PRESENT_MODE_FIFO_KHR; #endif uint32_t count = 0; - vkGetPhysicalDeviceSurfacePresentModesKHR(g_Gpu, g_Surface, &count, nullptr); + vkGetPhysicalDeviceSurfacePresentModesKHR(g_Gpu, g_Surface, &count, NULL); VkPresentModeKHR* presentModes = (VkPresentModeKHR*)malloc(sizeof(VkQueueFamilyProperties) * count); vkGetPhysicalDeviceSurfacePresentModesKHR(g_Gpu, g_Surface, &count, presentModes); bool presentModeAvailable = false; @@ -604,7 +604,7 @@ int main(int, char**) // Setup Vulkan uint32_t extensions_count; - SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, nullptr); + SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, NULL); const char** sdl_extensions = new const char*[extensions_count]; SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, sdl_extensions); setup_vulkan(window, sdl_extensions, extensions_count); diff --git a/examples/vulkan_example/main.cpp b/examples/vulkan_example/main.cpp index 24135e26..015d763f 100644 --- a/examples/vulkan_example/main.cpp +++ b/examples/vulkan_example/main.cpp @@ -360,7 +360,7 @@ static void setup_vulkan(GLFWwindow* window, const char** extensions, uint32_t e g_PresentMode = VK_PRESENT_MODE_FIFO_KHR; #endif uint32_t count = 0; - vkGetPhysicalDeviceSurfacePresentModesKHR(g_Gpu, g_Surface, &count, nullptr); + vkGetPhysicalDeviceSurfacePresentModesKHR(g_Gpu, g_Surface, &count, NULL); VkPresentModeKHR* presentModes = (VkPresentModeKHR*)malloc(sizeof(VkQueueFamilyProperties) * count); vkGetPhysicalDeviceSurfacePresentModesKHR(g_Gpu, g_Surface, &count, presentModes); bool presentModeAvailable = false;