On Tue, Oct 31, 2017 at 6:24 PM, Roderick Colenbrander thunderbird2k@gmail.com wrote:
Signed-off-by: Roderick Colenbrander thunderbird2k@gmail.com
dlls/winex11.drv/vulkan.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
diff --git a/dlls/winex11.drv/vulkan.c b/dlls/winex11.drv/vulkan.c index e0e45d47ce..4171ee0fd6 100644 --- a/dlls/winex11.drv/vulkan.c +++ b/dlls/winex11.drv/vulkan.c @@ -21,6 +21,7 @@ #include "wine/port.h"
#include "wine/debug.h" +#include "wine/library.h" #include "wine/vulkan.h"
#ifdef SONAME_LIBVULKAN @@ -39,6 +40,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(vulkan); void* WINAPI X11DRV_vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
+static BOOL wine_vk_init(void) +{
- static BOOL init_done = FALSE;
- static void *vulkan_handle;
- if (init_done) return (vulkan_handle != NULL);
- init_done = TRUE;
It's probably better to use InitOnceExecuteOnce().