update gfx.renderer when switchTo() is called. fixes #17016