diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-09 17:00:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 17:00:59 +0200 |
commit | eb4bdedcc6366394f2eb83a21643328f8081495e (patch) | |
tree | b5e0ea7c6d88a1c496a70e7316afda601e8b3a4f /servers | |
parent | 8fb54ef19b08e3f3263dd18d847b4c5c0c65fe0d (diff) | |
parent | e0b703e3fe9da396f9ad0c8bd29bb61ab1ab0fdd (diff) |
Merge pull request #27846 from BastiaanOlij/fix_mobile_vr
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; |