Fix off-by-one error in batcher
This commit is contained in:
1 parent
d4ca16f07e
commit
337e876571
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user