Fixed bug #771
Fixed bug #771

Cleaned up the code a bit and made sure that an OpenGL window gets the OpenGL
renderer.  Inspired by a patch from Mason Wheeler.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404229

aduros/SDL,cebash/SDL_PSL1GHT,cebash/SDL_PSL1GHT,aduros/SDL,cebash/SDL_PSL1GHT,cebash/SDL_PSL1GHT,cebash/SDL_PSL1GHT,aduros/SDL,aduros/SDL,aduros/SDL