summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2023-01-13 01:23:05 +0100
committerGitHub <noreply@github.com>2023-01-13 01:23:05 +0100
commit7c2768c2f8abc2e81a55be72b436de69d9f01bf9 (patch)
treeb86c39a04f482fe5e5c3f93d2028d11fc73d8ef3
parent7dfcd555671e31e964948aa3e0f650898d39b80f (diff)
parent131036a5ef2bd0e596ec9061454fa9e4ae086054 (diff)
Merge pull request #71303 from clayjohn/ref-probe-crash
Only setup depth framebuffer properties when not rendering ReflectionProbes
-rw-r--r--servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp
index bd34d83ea3..93c741fd34 100644
--- a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp
+++ b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp
@@ -1707,7 +1707,7 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
RD::get_singleton()->draw_command_end_label();
- if (rb.is_valid()) {
+ if (rb.is_valid() && !p_render_data->reflection_probe.is_valid()) {
if (using_voxelgi) {
depth_pass_mode = PASS_MODE_DEPTH_NORMAL_ROUGHNESS_VOXEL_GI;
} else if (p_render_data->environment.is_valid()) {