Fix npe
This commit is contained in:
parent
f70151f2c7
commit
f3319d3fd6
@ -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…
x
Reference in New Issue
Block a user