Skip to content

Commit

Permalink
Remove the early exit to make sure the prepass textures are cleared (#…
Browse files Browse the repository at this point in the history
…7891)

# Objective

- Fixes #7888.

## Solution

- Remove the early exit to make sure the prepass textures are cleared.
  • Loading branch information
geieredgar committed Mar 4, 2023
1 parent 0b794c8 commit a213c8a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/bevy_core_pipeline/src/prepass/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ impl Node for PrepassNode {
return Ok(());
};

if opaque_prepass_phase.items.is_empty() && alpha_mask_prepass_phase.items.is_empty() {
return Ok(());
}

let mut color_attachments = vec![];
if let Some(view_normals_texture) = &view_prepass_textures.normal {
color_attachments.push(Some(RenderPassColorAttachment {
Expand Down

0 comments on commit a213c8a

Please sign in to comment.