Skip to content
Permalink
Browse files

kill C99'ism in SDL_waylandvulkan.c

  • Loading branch information
sezero committed Feb 12, 2018
1 parent 6e01fbb commit 8a1ae708d4feb089676fc1e81f9b1f3cc8e943c0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/wayland/SDL_waylandvulkan.c
@@ -39,7 +39,7 @@
int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
{
VkExtensionProperties *extensions = NULL;
Uint32 extensionCount = 0;
Uint32 i, extensionCount = 0;
SDL_bool hasSurfaceExtension = SDL_FALSE;
SDL_bool hasWaylandSurfaceExtension = SDL_FALSE;
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
@@ -71,7 +71,7 @@ int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
&extensionCount);
if(!extensions)
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)
hasSurfaceExtension = SDL_TRUE;

0 comments on commit 8a1ae70

Please sign in to comment.