Fix off-by-one error in batcher

This commit is contained in:
meehl committed 2026-08-23 15:24:14 +02:00
1 parent d4ca16f07e
commit 337e876571
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ impl BatchBuilder {
return Some(slot);
}
if self.textures.len() as u32 > max_slots {
if self.textures.len() as u32 >= max_slots {
return None;
}