1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix stackoverflow on display handle clone call

This commit is contained in:
lucasmerlin
2026-03-23 14:26:07 +01:00
parent b57ae661b7
commit a9e828fa5b

View File

@@ -25,7 +25,8 @@ pub trait EguiDisplayHandle:
impl Clone for Box<dyn EguiDisplayHandle> {
fn clone(&self) -> Self {
self.clone_display_handle()
// We need to deref here, otherwise this causes infinite recursion stack overflow.
(**self).clone_display_handle()
}
}