Runs with OpenGL 3.1 and GLSL 140. Gets attrib location as GLSL 140 doesn't support explicit attrib location.