Hi
I have an error(INVALID_ENUM) when I call glShaderSource after glGetBooleanv( GL_SHADER_COMPILER ).
If I skip the glGetBooleanv I have no error.
Can anybody tell me why it occurs?
//error
glGetBooleanv( GL_SHADER_COMPILER, &has_compiler );const GLenum ogl_error_code1 = glGetError(); //this is successful
glShaderSource( shader, 1, &src_code, &src_len );
const GLenum ogl_error_code2 = glGetError(); //this returns INVALID_ENUM
//doesnt have error
/*glGetBooleanv( GL_SHADER_COMPILER, &has_compiler ); */
glShaderSource( shader, 1, &src_code, &src_len );
const GLenum ogl_error_code = glGetError(); //this is successful