Avoid double borrow in tests by drawing windows explicitly in flush_effects
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
9b94f1483a
commit
fbfe108317
3 changed files with 16 additions and 3 deletions
|
@ -1181,7 +1181,7 @@ impl<'a> WindowContext<'a> {
|
|||
}
|
||||
|
||||
/// Draw pixels to the display for this window based on the contents of its scene.
|
||||
fn draw(&mut self) -> Scene {
|
||||
pub(crate) fn draw(&mut self) -> Scene {
|
||||
self.text_system().start_frame();
|
||||
self.window.platform_window.clear_input_handler();
|
||||
self.window.layout_engine.as_mut().unwrap().clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue