Fix lifetimes on render()
This commit is contained in:
parent
744f239841
commit
e39fa92462
1 changed files with 4 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue