openvr
openvr copied to clipboard
Fix possible segmentation fault in VR_InitInternal
It's possible that VR_LoadHmdSystemInternal() will return before it sets g_pVRModule
global pointer to a valid value. Without this change NULL will be passed to
SharedLib_Unload which on Linux will result in calling dlclose(NULL) which will cause a
segmentation fault.