This simple check makes sure that vulkan is actually available and not a nullptr.
It enables dedicated servers to at least run the preload and not crash in the process of running webrtc without graphics initialized.
I didnt test yet to which degree webrtc feature works, but the Audio WebRtc Testscene works now without crash.
This simple check makes sure that vulkan is actually available and not a nullptr.
It enables dedicated servers to at least run the preload and not crash in the process of running webrtc without graphics initialized. I didnt test yet to which degree webrtc feature works, but the Audio WebRtc Testscene works now without crash.
Fixes #791 in my case at least.
The reason this crashed is that vulkan is not available on dedicated server build and this function returns a nullptr which is not handled: https://github.com/Unity-Technologies/com.unity.webrtc/blob/main/Plugin%7E/WebRTCPlugin/UnityVulkanInterfaceFunctions.cpp#L17