mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
test: clear texture deltas in transform gpu_ctx helper
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
cc418e0b08
commit
c3ac5f672e
1 file changed
+3
-1
@@ -1003,7 +1003,9 @@ mod tests {
|
||||
/// A context that reports a real GPU's texture limit (the default reports 2048).
|
||||
fn gpu_ctx() -> egui::Context {
|
||||
let ctx = egui::Context::default();
|
||||
let _ = ctx.run_ui(egui::RawInput { max_texture_side: Some(16384), ..Default::default() }, |_| {});
|
||||
// Clear the font atlas delta: epaint panics on dropping unapplied deltas in debug builds.
|
||||
let mut out = ctx.run_ui(egui::RawInput { max_texture_side: Some(16384), ..Default::default() }, |_| {});
|
||||
out.textures_delta.clear();
|
||||
ctx
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user