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`.
|
/// Renders all layouts that were previously provided to `prepare`.
|
||||||
pub fn render<'pass>(
|
pub fn render<'s, 'pass>(
|
||||||
&'pass self,
|
&'s self,
|
||||||
atlas: &'pass TextAtlas,
|
atlas: &'s TextAtlas,
|
||||||
viewport: &'pass Viewport,
|
viewport: &'s Viewport,
|
||||||
pass: &mut RenderPass<'pass>,
|
pass: &mut RenderPass<'pass>,
|
||||||
) -> Result<(), RenderError> {
|
) -> Result<(), RenderError> {
|
||||||
if self.glyph_vertices.is_empty() {
|
if self.glyph_vertices.is_empty() {
|
||||||
|
|
Loading…
Reference in a new issue