Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
739 stars 185 forks source link

fix: Fix crash when executing on command line with "-nographics" option #862

Closed karasusan closed 1 year ago

karasusan commented 1 year ago

This PR fixes the crash when launching Unity Editor on a command line with -nographics option. If nographics option is set, kUnityGfxRendererNull is passed from Unity to gfxDevice in native code. This situation is undefined, therefore, it occurred the crash.