Merge pull request #71303 from clayjohn/ref-probe-crash

Only setup depth framebuffer properties when not rendering ReflectionProbes
This commit is contained in:
Rémi Verschelde 2023-01-13 01:23:05 +01:00 committed by GitHub
commit 7c2768c2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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