ensure that FBO resizes happen once per frame