Separate text area lifetimes
This commit is contained in:
parent
07b04f511a
commit
658fcf4d6f
2 changed files with 4 additions and 4 deletions
|
@ -54,13 +54,13 @@ impl TextRenderer {
|
|||
}
|
||||
|
||||
/// Prepares all of the provided text areas for rendering.
|
||||
pub fn prepare<'a>(
|
||||
pub fn prepare<'a, 'b: 'a>(
|
||||
&mut self,
|
||||
device: &Device,
|
||||
queue: &Queue,
|
||||
atlas: &mut TextAtlas,
|
||||
screen_resolution: Resolution,
|
||||
text_areas: &[TextArea<'a>],
|
||||
text_areas: &[TextArea<'a, 'b>],
|
||||
default_color: Color,
|
||||
cache: &mut SwashCache,
|
||||
) -> Result<(), PrepareError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue