mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
ISO C correct fix for casting void* to function pointer
This commit is contained in:
parent
882215e138
commit
873141acb1
@ -57,7 +57,7 @@ int WIN_Vulkan_LoadLibrary(_THIS, const char *path)
|
|||||||
return -1;
|
return -1;
|
||||||
SDL_strlcpy(_this->vulkan_config.loader_path, path,
|
SDL_strlcpy(_this->vulkan_config.loader_path, path,
|
||||||
SDL_arraysize(_this->vulkan_config.loader_path));
|
SDL_arraysize(_this->vulkan_config.loader_path));
|
||||||
vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) SDL_LoadFunction(
|
*(void **)&vkGetInstanceProcAddr = SDL_LoadFunction(
|
||||||
_this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
|
_this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
|
||||||
if(!vkGetInstanceProcAddr)
|
if(!vkGetInstanceProcAddr)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user