Skip to content
Permalink
Browse files

ISO C correct fix for casting void* to function pointer

  • Loading branch information
slouken committed Feb 11, 2018
1 parent 882215e commit 873141acb17530717b3e107623d3882debc09855
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/windows/SDL_windowsvulkan.c
@@ -57,7 +57,7 @@ int WIN_Vulkan_LoadLibrary(_THIS, const char *path)
return -1;
SDL_strlcpy(_this->vulkan_config.loader_path, path,
SDL_arraysize(_this->vulkan_config.loader_path));
vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) SDL_LoadFunction(
*(void **)&vkGetInstanceProcAddr = SDL_LoadFunction(
_this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
if(!vkGetInstanceProcAddr)
goto fail;

0 comments on commit 873141a

Please sign in to comment.