summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java
index 9dc72f617..aafd71d64 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java
@@ -246,6 +246,9 @@ public class RenderState {
System.arraycopy(colorStatic, 0, rgbaColor, 0, 4);
return rgbaColor;
}
+ public final void setColorStatic(final float[] rgbaColor){
+ System.arraycopy(rgbaColor, 0, colorStatic, 0, 4);
+ }
public final void setColorStatic(final float r, final float g, final float b, final float a){
colorStatic[0] = r;
colorStatic[1] = g;