SDL_GL_SetAttribute is supposed to be called *before* creating the window

The previous code was just weird and broken.

This fixes progress bars, which need the GL draw buffer to have an alpha
channel (previously they worked for some people, depending on what buffer
layout SDL happened to pick).
Merge remote-tracking branch 'johnbartholomew/fix-progress-bars'