Skip to content

Commit

Permalink
kill C99'ism in SDL_waylandvulkan.c
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Feb 12, 2018
1 parent 6e01fbb commit 8a1ae70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/wayland/SDL_waylandvulkan.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8a1ae70

Please sign in to comment.