small modification to p2

no need to set shader before init vao and vbo