Only setup depth framebuffer properties when not rendering ReflectionProbes

This commit is contained in:
clayjohn 2023-01-12 16:19:12 -08:00
parent 7dfcd55567
commit 131036a5ef

View file

@ -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()) {