Fonts test: clear the unapplied texture delta (debug assert)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-06 11:38:19 -04:00
parent 12083230a8
commit e15aae1f1f
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ fn installed() -> egui::Context {
let ctx = egui::Context::default();
theme::install(&ctx, &Tokens::for_kind(ThemeKind::Dark));
// Fonts are loaded at the start of the first frame.
let _ = ctx.run_ui(egui::RawInput::default(), |_| {});
let mut out = ctx.run_ui(egui::RawInput::default(), |_| {});
// Nothing renders here; drop the atlas upload instead of applying it.
out.textures_delta.clear();
ctx
}