Hack for linux loading vulkan dynamic lib

This commit is contained in:
baldurk
2016-02-07 18:37:41 +01:00
parent fa621c61b2
commit ab482edcc1
+7 -1
View File
@@ -655,10 +655,16 @@ ReplayCreateStatus Vulkan_CreateReplayDevice(const char *logfile, IReplayDriver
{
RDCDEBUG("Creating a VulkanReplay replay device");
#if defined(WIN32)
bool loaded = Process::LoadLibrary("vulkan.dll");
#elif defined(__linux__)
bool loaded = Process::LoadLibrary("libvulkan.so");
#else
#error "Unknown platform"
#endif
if(!loaded)
{
RDCERR("Failed to load vulkan.dll");
RDCERR("Failed to load vulkan library");
return eReplayCreate_APIInitFailed;
}