From 0766220a8e62c6ff1c1bcb614707a0067930e42e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 19 May 2023 19:25:11 +0200 Subject: [PATCH] fixed runtime texture packer tests not working on some machines due to a texture being generated that is too tall --- Tests/TexturePackerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/TexturePackerTests.cs b/Tests/TexturePackerTests.cs index 4043f88..ec5f901 100644 --- a/Tests/TexturePackerTests.cs +++ b/Tests/TexturePackerTests.cs @@ -46,7 +46,7 @@ public class TexturePackerTests { [Test] public void TestOverlap() { var packed = new List(); - 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);