mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
viewport_sync now processes platform output for GlowWinitApp
This commit is contained in:
@@ -1038,6 +1038,11 @@ mod glow_integration {
|
|||||||
"failed to get current context to swap buffers",
|
"failed to get current context to swap buffers",
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
winit_state.handle_platform_output(
|
||||||
|
&win,
|
||||||
|
&egui_ctx,
|
||||||
|
output.platform_output,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
break 'try_render;
|
break 'try_render;
|
||||||
}
|
}
|
||||||
@@ -1048,7 +1053,7 @@ mod glow_integration {
|
|||||||
Self::process_viewport_builders(glutin.clone(), output.viewports);
|
Self::process_viewport_builders(glutin.clone(), output.viewports);
|
||||||
egui_winit::process_viewport_commands(
|
egui_winit::process_viewport_commands(
|
||||||
output.viewport_commands,
|
output.viewport_commands,
|
||||||
focused.read().clone(),
|
*focused.read(),
|
||||||
|id| {
|
|id| {
|
||||||
glutin
|
glutin
|
||||||
.read()
|
.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user