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>> mut ui: NonSendSync<UniqueViewMut<UiState>>
) { ) {
let ui: &mut UiState = &mut ui; let ui: &mut UiState = &mut ui;
let UiState { kui: ui, renderer } = ui; let UiState { kui, renderer } = ui;
ui.end(); kui.end();
let (upload_needed, plan) = ui.draw_plan(); let (upload_needed, plan) = kui.draw_plan();
if upload_needed { if upload_needed {
renderer.update(plan); renderer.update(plan);
} }