summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-06-15 23:45:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 11:53:27 +0100
commit9b0dd4f571ff431e23b9097e7f29746f4157be12 (patch)
treeaa18fc6803e8733f8f270666e691153c72b6066d /modules
parent836c2109a0b1371653e3c82100199dfdabd47da9 (diff)
A lot of progress with canvas rendering, still far from working.
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/arvr/arvr_interface_gdnative.cpp5
-rw-r--r--modules/mobile_vr/mobile_vr_interface.cpp4
2 files changed, 6 insertions, 3 deletions
diff --git a/modules/gdnative/arvr/arvr_interface_gdnative.cpp b/modules/gdnative/arvr/arvr_interface_gdnative.cpp
index eb43a3971c..967bcee522 100644
--- a/modules/gdnative/arvr/arvr_interface_gdnative.cpp
+++ b/modules/gdnative/arvr/arvr_interface_gdnative.cpp
@@ -286,9 +286,10 @@ void GDAPI godot_arvr_blit(godot_int p_eye, godot_rid *p_render_target, godot_re
screen_rect.size.x /= 2.0;
screen_rect.position.x += screen_rect.size.x;
}
-
- VSG::rasterizer->set_current_render_target(RID());
+#warning this needs to be redone
+#if 0
VSG::rasterizer->blit_render_target_to_screen(*render_target, screen_rect, 0);
+#endif
}
godot_int GDAPI godot_arvr_get_texid(godot_rid *p_render_target) {
diff --git a/modules/mobile_vr/mobile_vr_interface.cpp b/modules/mobile_vr/mobile_vr_interface.cpp
index 22b708f206..97bc7945cd 100644
--- a/modules/mobile_vr/mobile_vr_interface.cpp
+++ b/modules/mobile_vr/mobile_vr_interface.cpp
@@ -426,11 +426,13 @@ void MobileVRInterface::commit_for_eye(ARVRInterface::Eyes p_eye, RID p_render_t
eye_center.y = 0.0;
// unset our render target so we are outputting to our main screen by making RasterizerStorageGLES3::system_fbo our current FBO
+#if 0
VSG::rasterizer->set_current_render_target(RID());
// and output
VSG::rasterizer->output_lens_distorted_to_screen(p_render_target, dest, k1, k2, eye_center, oversample);
-};
+#endif
+}
void MobileVRInterface::process() {
_THREAD_SAFE_METHOD_