Fragment shader failed to compile with the following errors:
ERROR: 0:6: error(#132) Syntax error: “<” parse error
ERROR: error(#273) 1 compilation errors. No code generated
The weirdest problem is that I don’t even have a < in my code.
I can’t see what my problem is and I am using a tutorial at www.opengl-tutorials.com
#version 410 core
out vec3 color;
void main(){
color = vec3(1, 0, 0);
}
So try use GDebugger (or an equivalent) to see what GLSL code did the GPU receive, this is how I found my problem with text encoding, and yours seems very close.
Debug String: Detected error: The debugged process asked for an extension function pointer (glCreateShader) from one render context, but called this function pointer in another render context (context #2)
I came up with this, but I don’t do anything with a context apart from the way the tutorial has two. but when I create the shader the other context is deleted and says so in gDEBugger (nice program btw)