Set the video resolution before calling InitRenderSystem so that

Set the video resolution before calling InitRenderSystem so that all openGL values will be defined

(Issue: #2302)