I have a shader generating procedure. The code is stored in simple string field. Then I use that simple code
Handler = GL.CreateShader(Type); if (Handler == 0) return Handler; //Set Source GL.ShaderSource(Handler, _code); var error = GL.GetError();
One of my generated shaders causes error variable equal to InvalidValue after calling GetError. As you can see handler is created just before code setting and _code field contains 100% correct code.
Can anyone help me with this issue?