mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
vulkan: fix some compiler warnings in gnu89 mode
for loop variable initialization and conflicting types for i.
This commit is contained in:
parent
4be16c1ad8
commit
054dc5282d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue