Skip to content

Commit

Permalink
Change to break_batching update only when pipeline's are changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jwvg0425 authored and not-fl3 committed Jan 15, 2024
1 parent 37a762a commit aaaf354
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/quad_gl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,10 @@ impl QuadGl {
}

pub fn pipeline(&mut self, pipeline: Option<GlPipeline>) {
if self.state.pipeline == pipeline {
return;
}

self.state.break_batching = true;
self.state.pipeline = pipeline;
}
Expand Down

0 comments on commit aaaf354

Please sign in to comment.