Reworked viewport_render()
Merge pull request #220 from adrian17/master

Reworked viewport_render()