To render anything you need to call original SDL_GL_SwapWindow before you actually call SDL_GL_MakeCurrent (with original context as one of the arguments).
Moreover, you need to call glFlush() in the bottom of your SDL_GL_SwapWindow override function to get rid of flickering effect.
- Install SDL2 library with Homebrew.
brew install sdl2
- Open project in XCode.
- Build the project.
- Inject the lib. (for example with osxinj)
- @aixxe and his SDL2 hooking example on Linux
- @LWSS and @Marc3842h
- @aKalisch for his suggestions