Forum Discussion
caspercasper
10 years agoHonored Guest
Switch Rendering on/off several times
Hello there, i do have a very basic console application which should create, do some rendering and shutdown an hmd on key press - and then start do it again. This happens in a extra thread. This w...
cybereality
10 years agoGrand Champion
Well, I would advice not using the old SDK, but that may not even be your issue.
Looking at your code sample, and the comments in the SDK, I found this.
So I think you need to call it like this:
Looking at your code sample, and the comments in the SDK, I found this.
/// Upon success the returned ovrHmd* must be freed with ovrHmd_Destroy.
/// A second call to ovrHmd_Create or ovrHmd_CreateDebug with the same index as
/// a previously successful call will result in an error return value if the
/// previous Hmd has not been destroyed.
So I think you need to call it like this:
ovr_Initialize(nullptr);
ovrHmd HMD;
ovrHmd_Create(0, &HMD);
...
ovrHmd_Destroy(HMD);
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago
- 7 months ago