mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 23:36:18 +00:00
OVR: Fix for debug devices
This commit is contained in:
parent
5220692fe6
commit
49043f60fa
1 changed files with 2 additions and 0 deletions
|
@ -1093,6 +1093,7 @@ void CStereoOVR::listDevices(std::vector<CStereoDeviceInfo> &devicesOut)
|
||||||
CStereoDeviceInfo &deviceInfoOut = devicesOut[devicesOut.size() - 1];
|
CStereoDeviceInfo &deviceInfoOut = devicesOut[devicesOut.size() - 1];
|
||||||
ovrHmd hmd = ovrHmd_CreateDebug(ovrHmd_DK1);
|
ovrHmd hmd = ovrHmd_CreateDebug(ovrHmd_DK1);
|
||||||
CStereoOVRDeviceFactory *factory = new CStereoOVRDeviceFactory();
|
CStereoOVRDeviceFactory *factory = new CStereoOVRDeviceFactory();
|
||||||
|
factory->DetectId = s_DetectId;
|
||||||
factory->DebugDevice = true;
|
factory->DebugDevice = true;
|
||||||
factory->DebugDeviceType = ovrHmd_DK1;
|
factory->DebugDeviceType = ovrHmd_DK1;
|
||||||
deviceInfoOut.Factory = factory;
|
deviceInfoOut.Factory = factory;
|
||||||
|
@ -1110,6 +1111,7 @@ void CStereoOVR::listDevices(std::vector<CStereoDeviceInfo> &devicesOut)
|
||||||
CStereoDeviceInfo &deviceInfoOut = devicesOut[devicesOut.size() - 1];
|
CStereoDeviceInfo &deviceInfoOut = devicesOut[devicesOut.size() - 1];
|
||||||
ovrHmd hmd = ovrHmd_CreateDebug(ovrHmd_DK2);
|
ovrHmd hmd = ovrHmd_CreateDebug(ovrHmd_DK2);
|
||||||
CStereoOVRDeviceFactory *factory = new CStereoOVRDeviceFactory();
|
CStereoOVRDeviceFactory *factory = new CStereoOVRDeviceFactory();
|
||||||
|
factory->DetectId = s_DetectId;
|
||||||
factory->DebugDevice = true;
|
factory->DebugDevice = true;
|
||||||
factory->DebugDeviceType = ovrHmd_DK2;
|
factory->DebugDeviceType = ovrHmd_DK2;
|
||||||
deviceInfoOut.Factory = factory;
|
deviceInfoOut.Factory = factory;
|
||||||
|
|
Loading…
Reference in a new issue