From 16acf51d3d3796c357aa307f9f502a1c71f676fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 20 May 2020 22:36:00 +0200 Subject: [PATCH] ensure local vars are init for win compilation --- src/vkh_phyinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vkh_phyinfo.c b/src/vkh_phyinfo.c index dedbbb7..14b1714 100644 --- a/src/vkh_phyinfo.c +++ b/src/vkh_phyinfo.c @@ -67,7 +67,7 @@ VkhPhyInfo vkh_phyinfo_create (VkPhysicalDevice phy, VkSurfaceKHR surface) { //try to find suitable queue if no dedicated one found for (uint32_t j=0; jqueueCount; j++){ if (pi->queues[j].queueFlags & VK_QUEUE_GRAPHICS_BIT) { - VkBool32 present; + VkBool32 present = 0; if (surface) vkGetPhysicalDeviceSurfaceSupportKHR(phy, j, surface, &present); //printf ("surf=%d, q=%d, present=%d\n",surface,j,present); -- 2.47.3