egui/crates
pm100 0c528fb862
Fix crash when changing viewport settings (#4862)
* Fixes #3959

There are two bugs racing each other here, which is why it sometimes
crashes and sometimes the app just silently exists

Bug 1
When the window is recreated a Destroyed event arrives (due to the Drop
of the old window). The code that receives this event does not look to
see if its the main viewport or a secondary one and unconditionally
closes the app. The code path for other platforms is slightly different
and does check.

I have moved the code that handles the destroy to be in the same place
and have the same behavior as the other platforms.

Bug 2

At recreate time the window and winit entries of the viewport are set to
None (forcin g them to be recreated). But the surface is still bound to
the old window, this causes the next context switch to fail. So I simply
added a viewport.gl_surface = None too,


This is my first egui PR so I hope I have not broken anything. If
nothing else I understand a little better how egui works.
2024-08-26 08:55:34 +02:00
..
ecolor Remove some debug asserts (#4826) 2024-07-15 11:20:22 +02:00
eframe Fix crash when changing viewport settings (#4862) 2024-08-26 08:55:34 +02:00
egui Create a `UiBuilder` for building `Ui`s (#4969) 2024-08-26 08:51:18 +02:00
egui-wgpu Update to wgpu 22.1 (#4964) 2024-08-16 13:29:40 +02:00
egui-winit Unpin & upgrade winit to 0.30.5 (#4939) 2024-08-09 09:15:14 +02:00
egui_demo_app upgrade to wgpu 22.0.0 (#4847) 2024-07-19 10:05:56 +02:00
egui_demo_lib Create a `UiBuilder` for building `Ui`s (#4969) 2024-08-26 08:51:18 +02:00
egui_extras Create a `UiBuilder` for building `Ui`s (#4969) 2024-08-26 08:51:18 +02:00
egui_glow Unpin & upgrade winit to 0.30.5 (#4939) 2024-08-09 09:15:14 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add `Rect::scale_from_center` (#4673) 2024-07-15 19:54:35 +02:00
epaint Move default fonts to new crate `epaint_default_fonts` (#4853) 2024-07-31 09:50:02 +02:00
epaint_default_fonts Move default fonts to new crate `epaint_default_fonts` (#4853) 2024-07-31 09:50:02 +02:00