Shader can't be compiled
问题 I'm following book "OpenGL Programming Guide 8th Edition". I just want to run the first program introduced in the book on my Mac. It's Mavericks + Xcode 4.6.1 + Intel HD graphics 4000. So the problem is, the shader can't be compiled. Shader codes: #version 410 core layout(location = 0) in vec4 vPosition; void main() { gl_Position = vPosition; } And the error message is: Shader compilation failed: ERROR: 0:1: '' : version '410' is not supported ERROR: 0:1: '' : syntax error #version ERROR: 0:3