mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Patched to compile in C89 mode.
This commit is contained in:
parent
5f34162030
commit
d778b26dd1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user