mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-13 00:24:20 +00:00
Examples: NULL pointers for consistency.
This commit is contained in:
parent
baef79415b
commit
997d1bd0eb
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue