diff options
-rw-r--r-- | src/classes/share/javax/media/j3d/ImageComponent3DRetained.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/ImageComponent3DRetained.java b/src/classes/share/javax/media/j3d/ImageComponent3DRetained.java index 91947bb..468536c 100644 --- a/src/classes/share/javax/media/j3d/ImageComponent3DRetained.java +++ b/src/classes/share/javax/media/j3d/ImageComponent3DRetained.java @@ -387,10 +387,12 @@ class ImageComponent3DRetained extends ImageComponentRetained { ImageComponent3DRetained newImage = new ImageComponent3DRetained(); newImage.processParams(getFormat(), newWidth, newHeight, depth); + newImage.setImageFormatType(getImageFormatType()); + newImage.setUnitsPerPixel(getUnitsPerPixel()); newImage.imageData = newImage.createRenderedImageDataObject(null); for (int i = 0; i < depth; i++) { - newImage.scaleImage(xScale, yScale, depth, this); + newImage.scaleImage(xScale, yScale, i, this); } return newImage; |