glVertexAttribPointer() call moved to prepare_to_draw().