diff options
author | Alessandro Borges <[email protected]> | 2009-02-24 23:35:23 +0000 |
---|---|---|
committer | Alessandro Borges <[email protected]> | 2009-02-24 23:35:23 +0000 |
commit | 05e805403b9f9608e851055d5e831eadbce20f4a (patch) | |
tree | fdf9ea66d5369102c858fb882e5519ecc24e89ea /src/classes | |
parent | 024b93a7e82d2cabda30e29bada71273269cb5ad (diff) |
Issue number: 609
Obtained from:
Submitted by: InteractiveMesh
Reviewed by: Aces
Issue : Transparency fails under Color4b, works under Color4f
There was a typo error, where operator AND '&' was replaced by '*'
git-svn-id: https://svn.java.net/svn/j3d-core~svn/branches/dev-1_6@941 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/GeometryArrayRetained.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java index f53cb84..8a445b1 100644 --- a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java +++ b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java @@ -4197,9 +4197,9 @@ abstract class GeometryArrayRetained extends GeometryRetained{ } dirtyFlag |= COLOR_CHANGED; colorChanged = 0xffff; - this.vertexData[offset] = (color.x * 0xff) * ByteToFloatScale; - this.vertexData[offset+1] = (color.y * 0xff) * ByteToFloatScale; - this.vertexData[offset+2] = (color.z * 0xff) * ByteToFloatScale; + this.vertexData[offset] = (color.x & 0xff) * ByteToFloatScale; + this.vertexData[offset+1] = (color.y & 0xff) * ByteToFloatScale; + this.vertexData[offset+2] = (color.z & 0xff) * ByteToFloatScale; this.vertexData[offset+3] = ((color.w & 0xff) * ByteToFloatScale)*lastAlpha[0]; if(isLive){ |