diff options
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){ |