diff options
author | Sven Gothel <[email protected]> | 2023-08-01 17:45:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-08-01 17:45:16 +0200 |
commit | a973324a75b55b722caa755a7a573be849d997e4 (patch) | |
tree | b9a9ef9353f22ec98ee8cb08bee9d4f656eea00c /src/jogl/classes/com/jogamp | |
parent | d6f7c51dff01fdea5ce610c6da60ca2ac9cb9c43 (diff) |
Graph RenderState: Initialize colorStatic w/ alpha=1 to avoid invisible rendering if no static color has been set
Shader either uses just colorStatic or multiplies it w/ the color-stream value
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java | 2 |
1 files changed, 1 insertions, 1 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 f38383c83..dc1f0960a 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java @@ -193,7 +193,7 @@ public class RenderState { this.pmvMatrix = null != sharedPMVMatrix ? sharedPMVMatrix : new PMVMatrix(); this.weight = new float[1]; this.weightBuffer = FloatBuffer.wrap(weight); - this.colorStatic = new float[4]; + this.colorStatic = new float[] { 0, 0, 0, 1 }; this.colorStaticBuffer = FloatBuffer.wrap(colorStatic); this.hintBitfield = 0; } |