summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-01-12 16:19:12 -0800
committerclayjohn <claynjohn@gmail.com>2023-01-12 16:19:12 -0800
commit131036a5ef2bd0e596ec9061454fa9e4ae086054 (patch)
treeb86c39a04f482fe5e5c3f93d2028d11fc73d8ef3 /servers/rendering/renderer_rd
parent7dfcd555671e31e964948aa3e0f650898d39b80f (diff)
Only setup depth framebuffer properties when not rendering ReflectionProbes
Diffstat (limited to 'servers/rendering/renderer_rd')
-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()) {