Index: engine/src/core/com/jme3/util/SkyFactory.java
===================================================================
— engine/src/core/com/jme3/util/SkyFactory.java (revision 8315)
+++ engine/src/core/com/jme3/util/SkyFactory.java (working copy)
@@ -114,9 +114,7 @@
Format fmt = images[0].getFormat();
int width = images[0].getWidth();
-
ByteBuffer data = images[0].getData(0);<br />
-
int size = data != null ? data.capacity() : 0;<br />
-
- int height = images[0].getHeight();
checkImage(images[0]);
for (int i = 1; i < images.length; i++) {
@@ -125,13 +123,9 @@
if (image.getFormat() != fmt) {
throw new IllegalArgumentException(“Images must have same format”);
}
-
if (image.getWidth() != width) {<br />
-
if (image.getWidth() != width || image.getHeight() != height) {<br />
throw new IllegalArgumentException(“Images must have same resolution”);
}
-
ByteBuffer data2 = image.getData(0);<br />
-
if (data2.capacity() != size) {<br />
-
throw new IllegalArgumentException("Images must have same size");<br />
-
}<br />
}
}