- Fixed an error which caused perspective projection to not be set correctly on Viewport construction.
- Removed unuseful code.