diff options
Diffstat (limited to 'glow/src/text.rs')
| -rw-r--r-- | glow/src/text.rs | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/glow/src/text.rs b/glow/src/text.rs index 925c7287..a4c39dfe 100644 --- a/glow/src/text.rs +++ b/glow/src/text.rs @@ -11,7 +11,11 @@ pub struct Pipeline {  }  impl Pipeline { -    pub fn new(gl: &glow::Context, default_font: Option<&[u8]>) -> Self { +    pub fn new( +        gl: &glow::Context, +        default_font: Option<&[u8]>, +        multithreading: bool, +    ) -> Self {          let default_font = default_font.map(|slice| slice.to_vec());          // TODO: Font customization @@ -41,7 +45,7 @@ impl Pipeline {          let draw_brush =              glow_glyph::GlyphBrushBuilder::using_font(font.clone())                  .initial_cache_size((2048, 2048)) -                .draw_cache_multithread(false) // TODO: Expose as a configuration flag +                .draw_cache_multithread(multithreading)                  .build(&gl);          let measure_brush = | 
