X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fopenvr%2Fopenvrcombiner.cpp;h=85a0e2a2352df3ac557b5d0e8f9d3096e104921f;hb=HEAD;hp=fa5a8ac45edb9daba2398c04b68107c8041be485;hpb=b6de7d24475dec8f5d6b8148a69cf8b561bc0761;p=libs%2Fvr.git diff --git a/source/openvr/openvrcombiner.cpp b/source/openvr/openvrcombiner.cpp index fa5a8ac..85a0e2a 100644 --- a/source/openvr/openvrcombiner.cpp +++ b/source/openvr/openvrcombiner.cpp @@ -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