mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 07:23:13 -04:00
Now viewport_id always will be in a ViewportId you cannot create a ViewportId you can only get the main one everywere or get the current viewport id with Context::get_viewport_id
This commit is contained in:
@@ -37,7 +37,7 @@ impl eframe::App for MyApp {
|
||||
render: Option<&ViewportRender>,
|
||||
) {
|
||||
if let Some(render) = render {
|
||||
render(ctx, ctx.get_viewport_id(), ctx.get_parent_viewport_id());
|
||||
render(ctx);
|
||||
return;
|
||||
}
|
||||
custom_window_frame(ctx, frame, "egui with custom frame", |ui| {
|
||||
|
||||
Reference in New Issue
Block a user