Restore viewport when switching render targets
Merge pull request #4818 from raven02/patch-6

Restore viewport when switching render targets