OpenGL RCs and GDI DCs and SwapBuffers call
Posted on 1998-10-29
According to all the documentation a Win32 window can have one DC and OpenGL needs to create and attach an RC to that DC to render. I understand you may have multiple RCs but only one can be current at a time. I create several threads, each creating their own window, each window has a DC and an RC. The question is when I call SwapBuffers with a DC within one thread do I swap all the RCs of all the threads or just the one for that window/thread?
I have read the red, blue, white and superbible OpenGL books and some advanced Windows32 books. The question of how DCs and RCs are (in)dependant of a window or thread and how SwapBuffers affects all the existing DCs and RCs is unclear?