vulkan: fix some compiler warnings in gnu89 mode

for loop variable initialization and conflicting types for i.
This commit is contained in:
Tim-Philipp Müller 2019-03-22 23:35:04 +00:00
parent 4be16c1ad8
commit 054dc5282d

View file

@ -616,7 +616,7 @@ _allocate_swapchain (GstVulkanSwapper * swapper, GstCaps * caps,
* and is fastest (though it tears). If not, fall back to FIFO which is
* always available. */
present_mode = VK_PRESENT_MODE_FIFO_KHR;
for (gsize i = 0; i < swapper->n_surf_present_modes; i++) {
for (i = 0; i < swapper->n_surf_present_modes; i++) {
if (swapper->surf_present_modes[i] == VK_PRESENT_MODE_MAILBOX_KHR) {
present_mode = VK_PRESENT_MODE_MAILBOX_KHR;
break;