I have been learning about SDL 2D programming for a while and now I wanted to create a program using SDL and OpenGL combined. I set it up like this:
SDL_Init
You can render to an SDL_Surface with SDL, and then convert it to a texture & upload it to the GPU using OpenGL.