Commit d778b26dd181ed959c362eb89e74fc14167cf077

Ryan C. Gordon 2019-05-19T20:25:02

Patched to compile in C89 mode.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/SDL_vulkan_utils.c b/src/video/SDL_vulkan_utils.c
index b7750ff..28a5453 100644
--- a/src/video/SDL_vulkan_utils.c
+++ b/src/video/SDL_vulkan_utils.c
@@ -467,7 +467,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
 
         /* Find a supported alpha mode. Not all planes support OPAQUE */
         createInfo.alphaMode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
-        for (uint32_t i = 0; i < SDL_arraysize(alphaModes); i++) {
+        for (i = 0; i < SDL_arraysize(alphaModes); i++) {
             if (planeCaps.supportedAlpha & alphaModes[i]) {
                 createInfo.alphaMode = alphaModes[i];
                 break;