Added initialising an OpenGL context within the application.
Updated with latest sdl changes.