Move OpenVR init function out of Overlaycontroller

This prevents the issue of OpenVR not being initialized in constructors
of other objects, and there's really no reason not to do it.
This commit is contained in:
Vasily
2019-03-10 23:12:26 +01:00
committed by username223
parent 9f24099a93
commit 37e0366e9d
6 changed files with 52 additions and 47 deletions
-5
View File
@@ -106,11 +106,6 @@ private:
uint64_t m_lastFrame = 0;
int m_vsyncTooLateCounter = 0;
// OpenVR_Init must be declared before any other class that uses OpenVR
// function calls since objects are initialized in order of declaration in
// the class.
openvr_init::OpenVR_Init m_openVrInit;
input::SteamIVRInput m_actions;
public: // I know it's an ugly hack to make them public to enable external