Fix viewport for shadowmaps and portals