mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Skip two-tile regression when a larger tile override is set
This commit is contained in:
1 parent
b2c2f41e6d
commit
66d700adfb
1 file changed
+4
-1
@@ -366,7 +366,10 @@ fn a_lost_window_device_closes_only_once_unsaved_work_is_saved() {
|
||||
fn tiled_canvas_keeps_tiles_in_place() {
|
||||
use photocraft_ui_egui::gpu_canvas::ViewParams;
|
||||
let tile_override = std::env::var("PHOTOCRAFT_GPU_TILE").ok().and_then(|v| v.parse::<u32>().ok());
|
||||
assert!(tile_override.is_none_or(|tile| tile <= 64), "PHOTOCRAFT_GPU_TILE must be at most 64 for this two-tile test");
|
||||
if tile_override.is_some_and(|tile| tile > 64) {
|
||||
eprintln!("skipping: PHOTOCRAFT_GPU_TILE must be at most 64 for this two-tile test");
|
||||
return;
|
||||
}
|
||||
let _gpu = gpu_lock();
|
||||
const N: u32 = 2;
|
||||
const W: u32 = N * 64;
|
||||
|
||||
Reference in new issue
Block a user