Camera pose corrected on viewport reset