]> O.S.I.I.S - jp/vkhelpers.git/commitdiff
ensure local vars are init for win compilation
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 20 May 2020 20:36:00 +0000 (22:36 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 20 May 2020 20:36:00 +0000 (22:36 +0200)
src/vkh_phyinfo.c

index dedbbb7d36e81fed539f023ec06157f518f783b4..14b1714eff54b04756878ceaab918afa88be4621 100644 (file)
@@ -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; j<pi->queueCount; 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);