From aaaf3541e8b0bc791fe86f521975ba5b281cd724 Mon Sep 17 00:00:00 2001 From: namhyunuk Date: Mon, 15 Jan 2024 17:07:41 +0900 Subject: [PATCH] Change to break_batching update only when pipeline's are changed --- src/quad_gl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/quad_gl.rs b/src/quad_gl.rs index 1c2da9f5..d5af9be3 100644 --- a/src/quad_gl.rs +++ b/src/quad_gl.rs @@ -881,6 +881,10 @@ impl QuadGl { } pub fn pipeline(&mut self, pipeline: Option) { + if self.state.pipeline == pipeline { + return; + } + self.state.break_batching = true; self.state.pipeline = pipeline; }