1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 09:49:23 +01:00

fixed runtime texture packer tests not working on some machines due to a texture being generated that is too tall

This commit is contained in:
Ell 2023-05-19 19:25:11 +02:00
parent a1064984ec
commit 0766220a8e

View file

@ -46,7 +46,7 @@ public class TexturePackerTests {
[Test]
public void TestOverlap() {
var packed = new List<TextureRegion>();
using (var packer = new RuntimeTexturePacker()) {
using (var packer = new RuntimeTexturePacker(8192)) {
for (var i = 1; i <= 1000; i++)
packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add);
packer.Pack(this.game.GraphicsDevice);