mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
kill C99'ism in SDL_waylandvulkan.c
This commit is contained in:
parent
6e01fbb763
commit
8a1ae708d4
@ -39,7 +39,7 @@
|
|||||||
int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
|
int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
|
||||||
{
|
{
|
||||||
VkExtensionProperties *extensions = NULL;
|
VkExtensionProperties *extensions = NULL;
|
||||||
Uint32 extensionCount = 0;
|
Uint32 i, extensionCount = 0;
|
||||||
SDL_bool hasSurfaceExtension = SDL_FALSE;
|
SDL_bool hasSurfaceExtension = SDL_FALSE;
|
||||||
SDL_bool hasWaylandSurfaceExtension = SDL_FALSE;
|
SDL_bool hasWaylandSurfaceExtension = SDL_FALSE;
|
||||||
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
|
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
|
||||||
@ -71,7 +71,7 @@ int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
|
|||||||
&extensionCount);
|
&extensionCount);
|
||||||
if(!extensions)
|
if(!extensions)
|
||||||
goto fail;
|
goto fail;
|
||||||
for(Uint32 i = 0; i < extensionCount; i++)
|
for(i = 0; i < extensionCount; i++)
|
||||||
{
|
{
|
||||||
if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
|
if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
|
||||||
hasSurfaceExtension = SDL_TRUE;
|
hasSurfaceExtension = SDL_TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user