Check that dll is loaded before keeping it loaded

This commit is contained in:
baldurk
2020-05-08 21:14:20 +01:00
parent 7ddc24e13d
commit 6e27f8a54d
@@ -478,7 +478,8 @@ ReplayStatus WrappedVulkan::Initialise(VkInitParams &params, uint64_t sectionVer
GetResourceManager()->WrapResource(m_Instance, m_ReplayPhysicalDevices[i]);
#if ENABLED(RDOC_WIN32)
LoadLibraryA("nvoglv64.dll");
if(GetModuleHandleA("nvoglv64.dll"))
LoadLibraryA("nvoglv64.dll");
#endif
return ReplayStatus::Succeeded;