]> git.tdb.fi Git - libs/vr.git/blobdiff - source/ovr/oculusriftcombiner.cpp
Automatically configure the window to cover the Rift's monitor
[libs/vr.git] / source / ovr / oculusriftcombiner.cpp
index edbe08ae56e4ce9b0dcc833df9109b65d9ce9b85..b9515edcddb9ff8b9161dac229b62d080862d983 100644 (file)
@@ -121,6 +121,8 @@ OculusRiftCombiner::OculusRiftCombiner(OculusRiftDevice &d, GL::View &v):
        ovrHmd_GetRenderScaleAndOffset(right_fov, tex_size, view_rect, uv_scale_offset);
        right_shdata.uniform("uv_scale", uv_scale_offset[0].x, -uv_scale_offset[0].y);
        right_shdata.uniform("uv_offset", uv_scale_offset[1].x, 1-uv_scale_offset[1].y);
        ovrHmd_GetRenderScaleAndOffset(right_fov, tex_size, view_rect, uv_scale_offset);
        right_shdata.uniform("uv_scale", uv_scale_offset[0].x, -uv_scale_offset[0].y);
        right_shdata.uniform("uv_offset", uv_scale_offset[1].x, 1-uv_scale_offset[1].y);
+
+       device.configure_window(view.get_window());
 }
 
 void OculusRiftCombiner::prepare() const
 }
 
 void OculusRiftCombiner::prepare() const