mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Take Glow context using Arc. (#1640)
This allows usage with a Glow context that is passed between threads.
This commit is contained in:
@@ -8,7 +8,7 @@ fn main() {
|
||||
|
||||
let event_loop = glutin::event_loop::EventLoop::with_user_event();
|
||||
let (gl_window, gl) = create_display(&event_loop);
|
||||
let gl = std::rc::Rc::new(gl);
|
||||
let gl = std::sync::Arc::new(gl);
|
||||
|
||||
let mut egui_glow = egui_glow::EguiGlow::new(gl_window.window(), gl.clone());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user