diff options
author | Bastiaan Olij <mux213@gmail.com> | 2019-04-10 00:14:10 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2019-04-10 01:11:17 +1000 |
commit | e0b703e3fe9da396f9ad0c8bd29bb61ab1ab0fdd (patch) | |
tree | 5cc488a6bbd6b6e37751d1be0d084e709b0dd26e /servers | |
parent | 846e7bbc53931df81bfdcda77035b01edcfa42c1 (diff) |
Added eye_height, changed description and fixed size of viewport issue
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/visual_server_viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/visual/visual_server_viewport.cpp b/servers/visual/visual_server_viewport.cpp index 9ad3e4a308..e7f60c2c1f 100644 --- a/servers/visual/visual_server_viewport.cpp +++ b/servers/visual/visual_server_viewport.cpp @@ -295,8 +295,8 @@ void VisualServerViewport::draw_viewports() { if (vp->use_arvr && arvr_interface.is_valid()) { // override our size, make sure it matches our required size - Size2 size = arvr_interface->get_render_targetsize(); - VSG::storage->render_target_set_size(vp->render_target, size.x, size.y); + vp->size = arvr_interface->get_render_targetsize(); + VSG::storage->render_target_set_size(vp->render_target, vp->size.x, vp->size.y); // render mono or left eye first ARVRInterface::Eyes leftOrMono = arvr_interface->is_stereo() ? ARVRInterface::EYE_LEFT : ARVRInterface::EYE_MONO; |