Browse Source

Remove 10k x 10k surface size restriction

Equbuxu 2 years ago
parent
commit
f3b5db19c3
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/ChunkyImageLib/Surface.cs

+ 1 - 3
src/ChunkyImageLib/Surface.cs

@@ -22,9 +22,7 @@ public class Surface : IDisposable
     public Surface(VecI size)
     public Surface(VecI size)
     {
     {
         if (size.X < 1 || size.Y < 1)
         if (size.X < 1 || size.Y < 1)
-            throw new ArgumentException("Width and height must be >1");
-        if (size.X > 10000 || size.Y > 10000)
-            throw new ArgumentException("Width and height must be <=10000");
+            throw new ArgumentException("Width and height must be >=1");
 
 
         Size = size;
         Size = size;