mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
The problem is that when we call Context::create_viewport_sync can be on any thread because egui::Context is Sync + Send but the backend is not! So we want the callback to the backend to be thread local! The problem that this adds is that now you cannot create more then one egui::Context, because the thread local variabile is static and i don't know how to store a non static LocalKey on egui::ContextImpl