summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2021-09-07 09:21:13 +1000
committerGitHub <noreply@github.com>2021-09-07 09:21:13 +1000
commit461d31427c39776ba1bda631f1ce1726c71559a0 (patch)
tree669416b4f423a4c6a066f2aca9d2d07862b311d5 /modules
parent76b83ff615fed6c77766778ad74d277c72dc054b (diff)
parentfbac863bfbe7590cdd30a7e182c67ab372f4e49f (diff)
Merge pull request #52205 from BastiaanOlij/blit_source_rect
Add source rectangle to blit
Diffstat (limited to 'modules')
-rw-r--r--modules/mobile_vr/mobile_vr_interface.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/mobile_vr/mobile_vr_interface.cpp b/modules/mobile_vr/mobile_vr_interface.cpp
index 12bb0e5b44..bbf1db689d 100644
--- a/modules/mobile_vr/mobile_vr_interface.cpp
+++ b/modules/mobile_vr/mobile_vr_interface.cpp
@@ -455,16 +455,16 @@ Vector<BlitToScreen> MobileVRInterface::commit_views(RID p_render_target, const
blit.lens_distortion.aspect_ratio = aspect;
// left eye
- blit.rect = p_screen_rect;
- blit.rect.size.width *= 0.5;
+ blit.dst_rect = p_screen_rect;
+ blit.dst_rect.size.width *= 0.5;
blit.multi_view.layer = 0;
blit.lens_distortion.eye_center.x = ((-intraocular_dist / 2.0) + (display_width / 4.0)) / (display_width / 2.0);
blit_to_screen.push_back(blit);
// right eye
- blit.rect = p_screen_rect;
- blit.rect.size.width *= 0.5;
- blit.rect.position.x = blit.rect.size.width;
+ blit.dst_rect = p_screen_rect;
+ blit.dst_rect.size.width *= 0.5;
+ blit.dst_rect.position.x = blit.dst_rect.size.width;
blit.multi_view.layer = 1;
blit.lens_distortion.eye_center.x = ((intraocular_dist / 2.0) - (display_width / 4.0)) / (display_width / 2.0);
blit_to_screen.push_back(blit);