fix viewport resetup on render begin