mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
Patched to compile in C89 mode.
This commit is contained in:
parent
5f34162030
commit
d778b26dd1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue