This shader program compiles perfectly fine
#version 120
void main()
{
gl_FrontColor = gl_Color;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = ftransform();
}
But when I try switching to version 330 or 400 it throws a 'not supported' error
#version 400
void main()
{
gl_FrontColor = gl_Color;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = ftransform();
}
I need to use the 'in' and 'out' functionality to go along with the book I'm using to learn OpenGL and the latest Mac is supposed to support up to 4.1. I even downloaded the apple graphics developer tools to use the OpenGL Shader Builder for help and it won't compile anything more than 1.2 either.