Skip to content

Commit

Permalink
Attempted fix for Linux NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Mar 29, 2024
1 parent b48937e commit c371ebb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Assets/Scripts/VrSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,11 @@ public void SetGpuClockLevel(int level)

public void Initialize()
{
XRGeneralSettings.Instance.Manager.InitializeLoaderSync();
XRGeneralSettings.Instance.Manager.StartSubsystems();
// Null checks are for Linux view mode
// TODO: Need to investigate exactly why Linux hits an NRE here
// When other platforms don't
XRGeneralSettings.Instance?.Manager?.InitializeLoaderSync();
XRGeneralSettings.Instance?.Manager?.StartSubsystems();
}
}
}

0 comments on commit c371ebb

Please sign in to comment.