This commit is contained in:
griffi-gh 2023-11-25 16:19:16 +01:00
parent f7f0ca4547
commit feac14c79c

View file

@ -28,9 +28,9 @@ pub fn kubi_ui_end(
mut ui: NonSendSync<UniqueViewMut<UiState>>
) {
let ui: &mut UiState = &mut ui;
let UiState { kui: ui, renderer } = ui;
ui.end();
let (upload_needed, plan) = ui.draw_plan();
let UiState { kui, renderer } = ui;
kui.end();
let (upload_needed, plan) = kui.draw_plan();
if upload_needed {
renderer.update(plan);
}