From 6469e463cd1f99190c6eba4701d4c1059934d3ee Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Mon, 14 Jun 2021 18:06:28 +0300 Subject: feat: expose draw_cache_multithread --- glow/src/text.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'glow/src/text.rs') diff --git a/glow/src/text.rs b/glow/src/text.rs index 925c7287..7c9574a2 100644 --- a/glow/src/text.rs +++ b/glow/src/text.rs @@ -41,7 +41,9 @@ 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(cfg!( + feature = "glyph_draw_cache_multithread" + )) .build(&gl); let measure_brush = -- cgit