summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphil <[email protected]>2018-01-18 11:00:59 +1300
committerphil <[email protected]>2018-01-18 11:00:59 +1300
commitbe586c098ff784814ca4f864d75473657e8b41fe (patch)
tree67216f53bb35c193e30db2181304db85e618b192
parent67f662bb98ba96210e6026209b18b55cfa0f6470 (diff)
Replaced call to vecmath that used an awt class Color with a generic 3
byte version. This will allow vecmath to have it's awt dependency removed at some point.
-rw-r--r--src/main/java/org/jogamp/java3d/utils/geometry/Stripifier.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/jogamp/java3d/utils/geometry/Stripifier.java b/src/main/java/org/jogamp/java3d/utils/geometry/Stripifier.java
index f6353e1..7e4d5b9 100644
--- a/src/main/java/org/jogamp/java3d/utils/geometry/Stripifier.java
+++ b/src/main/java/org/jogamp/java3d/utils/geometry/Stripifier.java
@@ -2076,7 +2076,9 @@ public class Stripifier {
}
if (hasColors) colors[count] = currStrip.istream[j].color;
if (colorStrips) stripColors[count] =
- new org.jogamp.vecmath.Color3b(stripColor);
+ new org.jogamp.vecmath.Color3b((byte)stripColor.getRed(),
+ (byte)stripColor.getGreen(),
+ (byte)stripColor.getBlue());
count++;
}
}