sdl2: fix opengl (almost) entirely