mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +02:00
Enable Direct HMD mode only on windows
This commit is contained in:
parent
88ee1c313a
commit
f75ddb95f5
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,10 @@ class Text3DOverlay;
|
||||||
#define OVR_CLIENT_DISTORTION 1
|
#define OVR_CLIENT_DISTORTION 1
|
||||||
|
|
||||||
|
|
||||||
|
// Direct HMD mode is currently only supported on windows and some linux systems will
|
||||||
|
// misbehave if we try to enable the Oculus SDK at all, so isolate support for Direct
|
||||||
|
// mode only to windows for now
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
// On Win32 platforms, enabling Direct HMD requires that the SDK be
|
// On Win32 platforms, enabling Direct HMD requires that the SDK be
|
||||||
// initialized before the GL context is set up, but this breaks v-sync
|
// initialized before the GL context is set up, but this breaks v-sync
|
||||||
// for any application that has a Direct mode enable Rift connected
|
// for any application that has a Direct mode enable Rift connected
|
||||||
|
@ -40,6 +44,7 @@ class Text3DOverlay;
|
||||||
// caveat that it will break v-sync in NON-VR mode if you have an Oculus
|
// caveat that it will break v-sync in NON-VR mode if you have an Oculus
|
||||||
// Rift connect and in Direct mode
|
// Rift connect and in Direct mode
|
||||||
#define OVR_DIRECT_MODE 1
|
#define OVR_DIRECT_MODE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/// Handles interaction with the Oculus Rift.
|
/// Handles interaction with the Oculus Rift.
|
||||||
|
|
Loading…
Reference in a new issue