Make render take an immutable self

This commit is contained in:
Héctor Ramón Jiménez 2023-02-08 00:47:56 +01:00 committed by Josh Groves
parent e457bca108
commit 19d704f0c9

View file

@ -376,7 +376,7 @@ impl TextRenderer {
/// Renders all layouts that were previously provided to `prepare`. /// Renders all layouts that were previously provided to `prepare`.
pub fn render<'pass>( pub fn render<'pass>(
&'pass mut self, &'pass self,
atlas: &'pass TextAtlas, atlas: &'pass TextAtlas,
pass: &mut RenderPass<'pass>, pass: &mut RenderPass<'pass>,
) -> Result<(), RenderError> { ) -> Result<(), RenderError> {