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