From 6fd9985612eede30344013a5d2879be2a500220b Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Thu, 23 Nov 2006 05:55:43 +0000 Subject: 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 --- src/classes/share/com/sun/j3d/utils/image/TextureLoader.java | 3 +-- 1 file changed, 1 insertion(+), 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, -- cgit v1.2.3