diff options
author | Harvey Harrison <[email protected]> | 2012-09-22 12:28:35 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-09-22 12:28:35 -0700 |
commit | 3c85ba1352cd73bee1b1c4e85452a59399d1c8e8 (patch) | |
tree | 540c032253459e99b67ebcd2d4a3c4977a7c74df /src | |
parent | 267d77ee6f784b4f54b9a00a2dda42b37a925537 (diff) |
j3dutils: fix length when reading in a serialized DoubleArray
Otherwise the serialized array will not round-trip properly, it is definitely written
out with 8 bytes per double, no idea how this hasn't been noticed.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/GeometryArrayState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/GeometryArrayState.java b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/GeometryArrayState.java index ad8d235..8645366 100644 --- a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/GeometryArrayState.java +++ b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/GeometryArrayState.java @@ -685,7 +685,7 @@ public abstract class GeometryArrayState extends GeometryState { case FORMAT_DOUBLE: { double[] doubles = readDoubleArray( in ); ByteBufferWrapper b = - ByteBufferWrapper.allocateDirect( doubles.length*4 ); + ByteBufferWrapper.allocateDirect(doubles.length * 8); DoubleBufferWrapper f = b.order( ByteOrder.nativeOrder() ).asDoubleBuffer(); f.put( doubles ); |