mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 22:18:34 +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:
parent
a1064984ec
commit
0766220a8e
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public class TexturePackerTests {
|
||||||
[Test]
|
[Test]
|
||||||
public void TestOverlap() {
|
public void TestOverlap() {
|
||||||
var packed = new List<TextureRegion>();
|
var packed = new List<TextureRegion>();
|
||||||
using (var packer = new RuntimeTexturePacker()) {
|
using (var packer = new RuntimeTexturePacker(8192)) {
|
||||||
for (var i = 1; i <= 1000; i++)
|
for (var i = 1; i <= 1000; i++)
|
||||||
packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add);
|
packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add);
|
||||||
packer.Pack(this.game.GraphicsDevice);
|
packer.Pack(this.game.GraphicsDevice);
|
||||||
|
|
Loading…
Reference in a new issue