I'm using SDL2 and OpenGL 3.3, and wondering if following situations are thread safe:
case 1
- There are multiple threads and each of them has a context and a SDL window.
- Those threads render geometries multi-threaded.
case 2
- There are multiple threads and each of them has a SDL window. But there's only one context that is shared.
- Those threads render geometries multi-threaded.
I guess latter case is not safe because threads change current context by calling 'SDL_GL_MakeCurrent', but I'm not sure.