Hello,
I am trying to get a simple Testprogram using Transform Feedback working, but failed to even use the first command correctly.
I use the current nightly build (29-Sep-2009) of Jogl 2.
Here is what I did:
-
Initialize a GL3 Object “gl”
-
Create a Program “id”
-
Create a Vertex Shader and attach it to “id”
-
Use the following Command:
gl.glTransformFeedbackVaryings(id, 1, new String[] {"position"}, GL3.GL_SEPARATE_ATTRIBS);
where "position" refers to the varying declared as
out vec4 position;
in the Vertex Shader.
- Link id
Using glGetProgramInfoLog afterwards, I receive an error message like the following:
“error: Varying (named pÿ³tion) specified but not present in the program object.”
Please note that this message is not exactly the same every time I start the application:
“error: Varying (named °àåtion) specified but not present in the program object.”
“error: Varying (named €ètion) specified but not present in the program object.”
Did I make a mistake or has JOGL / glTransformFeedbackVaryings problems with a String Array as an argument?
Any help or suggestion would be great.