mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Use atomic_refcell instead of parking_lot for wasm32 targets (#1404)
Closes https://github.com/emilk/egui/issues/1401
This commit is contained in:
@@ -54,7 +54,7 @@ pub fn run(app_name: &str, native_options: &epi::NativeOptions, app_creator: epi
|
||||
);
|
||||
|
||||
{
|
||||
let event_loop_proxy = parking_lot::Mutex::new(event_loop.create_proxy());
|
||||
let event_loop_proxy = egui::mutex::Mutex::new(event_loop.create_proxy());
|
||||
integration.egui_ctx.set_request_repaint_callback(move || {
|
||||
event_loop_proxy.lock().send_event(RequestRepaintEvent).ok();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user