]> git.tdb.fi Git - libs/vr.git/blobdiff - source/openvr/openvrcombiner.cpp
Apply s/device/system/ to member variables as well
[libs/vr.git] / source / openvr / openvrcombiner.cpp
index 9bdf4b01a8151755a7f1ca3fa715c6dd96de9045..85a0e2a2352df3ac557b5d0e8f9d3096e104921f 100644 (file)
@@ -1,6 +1,6 @@
 #include <openvr.h>
 #include "openvrcombiner.h"
-#include "openvrdevice.h"
+#include "openvrsystem.h"
 
 namespace Msp {
 namespace VR {
@@ -11,8 +11,8 @@ struct OpenVRCombiner::Private
 };
 
 
-OpenVRCombiner::OpenVRCombiner(OpenVRDevice &d, GL::View &v):
-       device(d),
+OpenVRCombiner::OpenVRCombiner(OpenVRSystem &d, GL::View &v):
+       system(d),
        view(v)
 {
        vr::IVRSystem *vr_sys = vr::VRSystem();
@@ -25,12 +25,13 @@ OpenVRCombiner::OpenVRCombiner(OpenVRDevice &d, GL::View &v):
        Frustum right_frustum = Private::get_projection(vr::Eye_Right);
        configure_eye_frustums(left_frustum, right_frustum);
 
+       view.get_context().set_swap_interval(0);
        set_mirroring(true);
 }
 
 void OpenVRCombiner::prepare() const
 {
-       device.update_pose_matrices();
+       system.update_pose_matrices();
 }
 
 void OpenVRCombiner::render(const GL::Texture2D &left, const GL::Texture2D &right) const