Browse Source

Fixed length of data array for uv data.

Daniel Kauth 11 năm trước cách đây
mục cha
commit
c787596441
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      bbiwarg/DataSource/IisuDataSource.cs

+ 2 - 2
bbiwarg/DataSource/IisuDataSource.cs

@@ -187,8 +187,8 @@ namespace bbiwarg.DataSource
 
             IntPtr imageData = uvImage.Value.Raw;
 
-            float[] uvData = new float[width * height];
-            Marshal.Copy(imageData, uvData, 0, width * height);
+            float[] uvData = new float[2 * width * height];
+            Marshal.Copy(imageData, uvData, 0, 2 * width * height);
 
             return new UVImage(width, height, uvData);
         }