mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 07:23:13 -04:00
Fix: a sync viewport cannot render itself he needs his parent to be rendered now when sync viewport needs a redraw that redraw will be redirected to his parent
This commit is contained in:
@@ -26,6 +26,7 @@ fn main() {
|
||||
ViewportBuilder::default().with_title("Sync rendering!"),
|
||||
|ctx, viewport_id, parent_viewport_id| {
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
ui.label(format!("Frame: {}", ui.ctx().frame_nr()));
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("Viewport ID: ");
|
||||
ui.label(format!("{viewport_id}"))
|
||||
|
||||
Reference in New Issue
Block a user