Skip to content

Commit

Permalink
Render group normally without filter if feature is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Jan 21, 2024
1 parent 7cfa697 commit 6562a7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/render/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ pub fn render(
ctx: &mut Context,
accumulated_transform: Transform,
) {
#[cfg(feature = "filters")]
if !group.filters.is_empty() {
#[cfg(feature = "filters")]
filter::render(group, chunk, content, ctx, accumulated_transform);
} else if group.is_isolated() {
return;
}

// Filters will be ignored
if group.is_isolated() {
content.save_state();
let gs_ref = ctx.alloc_ref();
let mut gs = chunk.ext_graphics(gs_ref);
Expand Down

0 comments on commit 6562a7e

Please sign in to comment.