]> git.tdb.fi Git - libs/vr.git/blobdiff - source/openvr/openvrcombiner.cpp
Set zero swap interval in the OpenVR combiner
[libs/vr.git] / source / openvr / openvrcombiner.cpp
index 9bdf4b01a8151755a7f1ca3fa715c6dd96de9045..20b485eac1a9cf3401bae393dbb422b3cdad2f82 100644 (file)
@@ -1,6 +1,6 @@
 #include <openvr.h>
 #include "openvrcombiner.h"
-#include "openvrdevice.h"
+#include "openvrsystem.h"
 
 namespace Msp {
 namespace VR {
@@ -11,7 +11,7 @@ struct OpenVRCombiner::Private
 };
 
 
-OpenVRCombiner::OpenVRCombiner(OpenVRDevice &d, GL::View &v):
+OpenVRCombiner::OpenVRCombiner(OpenVRSystem &d, GL::View &v):
        device(d),
        view(v)
 {
@@ -25,6 +25,7 @@ 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);
 }