diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-20 22:36:00 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-20 22:36:00 +0200 |
| commit | 16acf51d3d3796c357aa307f9f502a1c71f676fc (patch) | |
| tree | cc6fa33b6931de57c1dab0543f58b946ae8e35b4 | |
| parent | 947523ab880b6b3cc0fef08c48ddd4714c82c302 (diff) | |
ensure local vars are init for win compilation
| -rw-r--r-- | src/vkh_phyinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; 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); |