summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2006-11-23 05:55:43 +0000
committerChien Yang <[email protected]>2006-11-23 05:55:43 +0000
commit6fd9985612eede30344013a5d2879be2a500220b (patch)
tree444701c70a246aa5926767296b57c9bbaf8bfe0c
parent806c7b05526ebffe315ae2129cb286770e4cd6e5 (diff)
Fixed Issue 392 : Texture loading regression for optimized RGB PNG files
git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@140 9497e636-51bd-65ba-982d-a4982e1767a5
-rw-r--r--src/classes/share/com/sun/j3d/utils/image/TextureLoader.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/image/TextureLoader.java b/src/classes/share/com/sun/j3d/utils/image/TextureLoader.java
index 5046cbb..3cd5969 100644
--- a/src/classes/share/com/sun/j3d/utils/image/TextureLoader.java
+++ b/src/classes/share/com/sun/j3d/utils/image/TextureLoader.java
@@ -812,8 +812,7 @@ public class TextureLoader extends Object {
bandOffset[ii] = ii;
nBits[ii] = 8;
}
- ComponentColorModel colorModel = new ComponentColorModel(cs, nBits, true, false, Transparency.TRANSLUCENT, 0);
-
+
wr = java.awt.image.Raster.createInterleavedRaster(DataBuffer.TYPE_BYTE,
scaleW, scaleH,
scaleW * numComponents, numComponents,