Try using SDL_GL_SetAttribute()
before you create your window:
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MAJOR_VERSION, 3 );
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MINOR_VERSION, 2 );
//SDL_GL_SetAttribute( SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE );
SDL_Window* window = SDL_CreateWindow( ... );
SDL_GLContext ctx = SDL_GL_CreateContext( window );
SDL_GL_MakeCurrent( window, ctx );
glewExperimental = true;
glewInit();
...
Though I wouldn't use the SDL_Renderer
stuff if you create a Core context.