[WIN32] avoid getting the viewport so often

This pr does the same than what popcornmix did for gles.
I noticed no change on my i7 rig ;) but it looks much cleaner that way.