viewport fix after platform
Merge pull request #1668 from Pomax/issue1605

viewport fix after platform