Make Renderer::render() immutable

This commit is contained in:
mars 2022-11-08 21:31:43 -07:00
parent c25449cbf9
commit f0a2e1b57c
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ impl Renderer {
}
}
pub fn render(&mut self, target: DrawTarget<'_>, cmds: &[DrawCommand]) {
pub fn render(&self, target: DrawTarget<'_>, cmds: &[DrawCommand]) {
let size = target.size;
let mut joined_vs = Vec::new();