I have been successfully using OpenGL for a single Windows dibsection.
When I create a second dibsection associated with a popup window, close that window and destroy the second dibsection (which had successful OpenGL rendering by the way), OpenGL rendering for the first dibsection no longer works.
I tried saving the DC and context before creating the second dibsection and then setting wglMakeCurrent( hOldDC, hOldRC ) after the second dibsection was destroyed. That didn’t help.
I tried repeating the entire process for creating an OpenGL view for the first dibsection. That didn’t help.
I can provide all the code for reassigning the OpenGL view for the first dibsection if that is helpful.
What am I doing wrong?