mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -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:
@@ -34,7 +34,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;
|
||||
}
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
|
||||
Reference in New Issue
Block a user