Skip to content
Snippets Groups Projects
Commit dd0aed0f authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

fix false positives for IsHMD on CAVE

parent e1d8f835
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,12 @@ bool FSFUtils::IsPrimary()
bool FSFUtils::IsHMD()
{
//the hack below seems not to work well on the CAVE (false positive), so first check whether we are on a cluster
if (IDisplayCluster::IsAvailable() && IDisplayCluster::Get().GetOperationMode() == EDisplayClusterOperationMode::Cluster)
{
return false;
}
// In editor builds: checks for EdEngine->IsVRPreviewActive()
// In packaged builds: checks for `-vr` in commandline or bStartInVR in UGeneralProjectSettings
return FAudioDevice::CanUseVRAudioDevice();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment