Skip to content

Commit

Permalink
OpenXR - Do not crash on recentering view
Browse files Browse the repository at this point in the history
  • Loading branch information
lvonasek committed Sep 6, 2023
1 parent e9c29e1 commit 2248b9d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "Common/Assert.h"
#include "Common/Logging/Log.h"
#include "Common/VR/DolphinVR.h"
#include "Core/HW/WiimoteReal/WiimoteReal.h"

#ifdef CIFACE_USE_WIN32
Expand Down Expand Up @@ -268,7 +269,7 @@ void ControllerInterface::ClearDevices()
bool ControllerInterface::AddDevice(std::shared_ptr<ciface::Core::Device> device)
{
// If we are shutdown (or in process of shutting down) ignore this request:
if (!m_is_init)
if (!m_is_init || Common::VR::IsEnabled())
return false;

std::lock_guard lk_population(m_devices_population_mutex);
Expand Down

0 comments on commit 2248b9d

Please sign in to comment.