Replaced glVertexPointer with glVertexAttribPointer