Merge pull request #513 from riccardobl/PBRisComing

Fix npe
define_list_fix
Rémy Bouquet 9 years ago committed by GitHub
commit 664ea53cc6
  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++) { 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); irrCubeMap.getImage().setData(i, buf);
} }

Loading…
Cancel
Save