Use the new get_attrib to simplify VertexAttribPointer.