sdl2: reorder graphics initialization

GL Initialization needs to happen before window creation, otherwise the GL library will get reloaded while in use and Windows will have a heart attack. This is bad, obviously.