Skip to content

Commit

Permalink
Patched to compile in C89 mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 20, 2019
1 parent 5f34162 commit d778b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_vulkan_utils.c
Expand Up @@ -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;
Expand Down

0 comments on commit d778b26

Please sign in to comment.