Skip to content

Commit

Permalink
fix(renderer): Force transition to end when it changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danyspin97 committed Jun 25, 2024
1 parent 0cbb354 commit a507890
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemon/src/render/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ impl Renderer {
unsafe {
self.gl.DeleteProgram(self.program);
}
// Stop the transition immediately
if self.transition_running() {
self.force_transition_end();
}
self.program = program;
}
Err(err) => error!("{err:?}"),
Expand Down

0 comments on commit a507890

Please sign in to comment.