Start and stop display link on the main thread

This commit is contained in:
Antonio Scandurra 2023-10-11 16:38:54 +02:00
parent b6e4208ea8
commit 457df8d3f3
2 changed files with 21 additions and 13 deletions

View file

@ -349,7 +349,7 @@ impl Platform for MacPlatform {
}
fn display_linker(&self) -> Arc<dyn PlatformDisplayLinker> {
Arc::new(MacDisplayLinker::new())
Arc::new(MacDisplayLinker::new(self.executor()))
}
fn text_system(&self) -> Arc<dyn PlatformTextSystem> {