win-capture: Fix 32-bit Vulkan capture

Vulkan loader needs pure name, which needs manual fix-up on 32-bit.
This commit is contained in:
jpark37 2020-07-09 21:51:04 -07:00
parent 87915489b4
commit 7772a56a97

View File

@ -1580,6 +1580,10 @@ static VkFunc VKAPI OBS_GetInstanceProcAddr(VkInstance inst, const char *name)
#undef GETPROCADDR
#ifndef _WIN64
#pragma comment(linker, "/EXPORT:OBS_Negotiate=_OBS_Negotiate@4")
#endif
EXPORT VkResult VKAPI OBS_Negotiate(VkNegotiateLayerInterface *nli)
{
if (nli->loaderLayerInterfaceVersion >= 2) {