1
0
mirror of https://github.com/Relintai/sdl2_frt.git synced 2024-12-25 09:17:12 +01:00

Patched to compile in C89 mode.

This commit is contained in:
Ryan C. Gordon 2019-05-19 20:25:02 -04:00
parent 5f34162030
commit d778b26dd1

View File

@ -467,7 +467,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
/* Find a supported alpha mode. Not all planes support OPAQUE */ /* Find a supported alpha mode. Not all planes support OPAQUE */
createInfo.alphaMode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR; 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]) { if (planeCaps.supportedAlpha & alphaModes[i]) {
createInfo.alphaMode = alphaModes[i]; createInfo.alphaMode = alphaModes[i];
break; break;