Common issues with OpenGL on OSX - wojnosystems/opengl-xcode GitHub Wiki
Purpose
Provide a FAQ of things I've encountered while coding an OpenGL application on OSX.
I see the triangle in chapter 2 of the book, but there isn't any color
If you used the NSOpenGLView from Apple as per Apple's documentation https://developer.apple.com/library/mac/documentation/graphicsimaging/conceptual/OpenGL-MacProgGuide/opengl_drawing/opengl_drawing.html#//apple_ref/doc/uid/TP40001987-CH404-SW8 then the application will not only build with OpenGL 1, but GLSL1.0 is extremely crippled compared to 4.0.0. You MUST create your own OpenGL context and configure it with the proper version of OpenGL. You also need to include gl3.h instead of gl.h in your precompiled header.