Fixes #26
Merge pull request #28 from djsquiddy/fix-3d-viewport

Fixes #26