Fix lifetimes on render()

This commit is contained in:
x10A94 2024-09-30 21:46:29 +03:00 committed by Josh Groves
parent 744f239841
commit e39fa92462

View file

@ -331,10 +331,10 @@ impl TextRenderer {
}
/// Renders all layouts that were previously provided to `prepare`.
pub fn render<'pass>(
&'pass self,
atlas: &'pass TextAtlas,
viewport: &'pass Viewport,
pub fn render<'s, 'pass>(
&'s self,
atlas: &'s TextAtlas,
viewport: &'s Viewport,
pass: &mut RenderPass<'pass>,
) -> Result<(), RenderError> {
if self.glyph_vertices.is_empty() {