From: Jean-Philippe Bruyère Date: Wed, 20 May 2020 20:36:00 +0000 (+0200) Subject: ensure local vars are init for win compilation X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=16acf51d3d3796c357aa307f9f502a1c71f676fc;p=jp%2Fvkhelpers.git ensure local vars are init for win compilation --- 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);