Whatever I pass to GL.TransformFeedbackVaryings it crashes with exception:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at OpenTK.Graphics.GL.Delegates.TransformFeedbackVaryings.Invoke(UInt32 program, Int32 count, String varyings, TransformFeedbackMode bufferMode)
at OpenTK.Graphics.GL.TransformFeedbackVaryings(UInt32 program, Int32 count, String varyings, TransformFeedbackMode bufferMode)
at kri.TransFeedback.setup(ShaderProg prog, String vars) in E:\pr\boo\engine\Shader.boo:line 90
at demo.MyAni..ctor() in E:\pr\boo\demo\demo.boo:line 22
at demo.DemoModule.Main(String argv) in E:\pr\boo\demo\demo.boo:line 80
The only way to make it work is to pass 0 as count and "" as varyings. I'd be very happy to see any example of using it with 1-2 varyings...
These are examples I tried (all with 1 varying) without luck:
Thanks in advance.