This commit is contained in:
Riccardo Balbo 2016-06-23 22:05:05 +02:00
parent f70151f2c7
commit f3319d3fd6

View File

@ -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);
}