glGetShaderSource StringBuilder argument
It appears that in the 2.1.0 version of the framework, the last argument to the Tao.OpenGL function Gl.glGetShaderSource was turned into an array.
So, instead of:
public static void glGetShaderSource(int shader, int bufSize, out int length, StringBuilder source);
we now have:
public static void glGetShaderSource(int shader, int bufSize, out int length, StringBuilder[] source);
Is this on purpose?
Gregor.
P.S.:
Code that used to work:
int length;
var sb = new StringBuilder( 8192 );
Gl.glGetShaderSource( shader.Handle, sb.Capacity, out length, sb );
// sb contains shader source, length is correct
Code that now no longer works:
int length;
var sb = new StringBuilder( 8192 );
var x = new StringBuilder[] { sb };
Gl.glGetShaderSource( shader.Handle, 1, out length, x );
// sb is empty, length is zero
// notice the 'capacity' parameter had to be changed to 1 to prevent the call from crashing

Please log a bug - I will
Please log a bug - I will look into this.
------
OpenTK