|
@@ -187,8 +187,8 @@ namespace bbiwarg.DataSource
|
|
|
|
|
|
IntPtr imageData = uvImage.Value.Raw;
|
|
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);
|
|
return new UVImage(width, height, uvData);
|
|
}
|
|
}
|