Browse Source

win-capture: Fix 32-bit Vulkan capture

Vulkan loader needs pure name, which needs manual fix-up on 32-bit.
jpark37 5 years ago
parent
commit
7772a56a97
1 changed files with 4 additions and 0 deletions
  1. 4 0
      plugins/win-capture/graphics-hook/vulkan-capture.c

+ 4 - 0
plugins/win-capture/graphics-hook/vulkan-capture.c

@@ -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) {