define_list_fix
Riccardo Balbo 9 years ago
parent f70151f2c7
commit f3319d3fd6
  1. 2
      jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java

@ -608,7 +608,7 @@ public class EnvMapUtils {
}
for (int i = 0; i < 6; i++) {
ByteBuffer buf = BufferUtils.createByteBuffer(targetMapSize * targetMapSize * store.getImage().getFormat().getBitsPerPixel()/8);
ByteBuffer buf = BufferUtils.createByteBuffer(targetMapSize * targetMapSize * irrCubeMap.getImage().getFormat().getBitsPerPixel()/8);
irrCubeMap.getImage().setData(i, buf);
}

Loading…
Cancel
Save