I've ran into a problem where I want to be able to change anti aliasing while the window is open. SDL2 only allows for anti aliasing (sampling) to be set before the window is created and I was wondering if there's a way to no have to recreate the window every time I change the sample level.
Example:
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); // Before the window
SDL_Window* window = SDL_CreateWindow("title", 0, 0, 960, 540, SDL_WINDOW_OPENGL);