For clarity, break the projection matrix update out of resizeGL.