fix wrong alignment

This commit is contained in:
Marcel Märtens 2020-12-16 15:17:17 +01:00
parent e8003a44dd
commit ea84cb138f

View File

@ -119,7 +119,7 @@ impl<'a> GreedyMesh<'a> {
let size = guillotiere::Size::new(32, 32).min(max_size);
let atlas =
guillotiere::SimpleAtlasAllocator::with_options(size, &guillotiere::AllocatorOptions {
alignment: guillotiere::Size::default(),
alignment: guillotiere::Size::new(1, 1),
small_size_threshold,
large_size_threshold,
});