]> 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 fa5a8ac45edb9daba2398c04b68107c8041be485..85a0e2a2352df3ac557b5d0e8f9d3096e104921f 100644 (file)
@@ -12,7 +12,7 @@ struct OpenVRCombiner::Private
 
 
 OpenVRCombiner::OpenVRCombiner(OpenVRSystem &d, GL::View &v):
-       device(d),
+       system(d),
        view(v)
 {
        vr::IVRSystem *vr_sys = vr::VRSystem();
@@ -25,12 +25,13 @@ OpenVRCombiner::OpenVRCombiner(OpenVRSystem &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