diff options
author | Chien Yang <[email protected]> | 2006-10-03 05:05:10 +0000 |
---|---|---|
committer | Chien Yang <[email protected]> | 2006-10-03 05:05:10 +0000 |
commit | 3d6820eb37d7bcc7490790105186081c9d39ec89 (patch) | |
tree | 7acab86ec2a029cbb11466e31e65f14e56ba5c30 /src/classes | |
parent | 08c09608a895d8e930f5f044ae16e0457851ec3d (diff) |
Fix to Issue 295 : Texture3D throws ArrayIndexOutOfBoundsException when scaleImage
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@706 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-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; |