summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJe06jm <jeremymoyes3@gmail.com>2022-06-27 17:59:27 -0600
committerJe06jm <jeremymoyes3@gmail.com>2022-06-27 18:01:12 -0600
commitc2550e1cc01cd6db2565b233e9e86cd8795f9229 (patch)
tree4a25e3e4d09cd4e0bea1362d16380946c401654d /servers
parentb863c40356b4b95192d1a1e2718db7d7aced4235 (diff)
Fixed FSR. Before, it was commiting the
raw render to the screen. Now, it commits the fsr upscaled image
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/renderer_scene_render_rd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp
index 90a7394344..5d8cda4f2b 100644
--- a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp
+++ b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp
@@ -3129,14 +3129,14 @@ void RendererSceneRenderRD::render_buffers_configure(RID p_render_buffers, RID p
if (rb->view_count == 1) {
// copy as a convenience
RenderBuffers::View view;
- view.view_texture = rb->internal_texture;
+ view.view_texture = rb->texture;
view.view_depth = rb->depth_texture;
view.view_fb = rb->texture_fb;
rb->views.push_back(view);
} else {
for (uint32_t i = 0; i < rb->view_count; i++) {
RenderBuffers::View view;
- view.view_texture = RD::get_singleton()->texture_create_shared_from_slice(RD::TextureView(), rb->internal_texture, i, 0);
+ view.view_texture = RD::get_singleton()->texture_create_shared_from_slice(RD::TextureView(), rb->texture, i, 0);
view.view_depth = RD::get_singleton()->texture_create_shared_from_slice(RD::TextureView(), rb->depth_texture, i, 0);
if (!_render_buffers_can_be_storage()) {