Code now runs in OpenGL 3 Core Profile