PDA

View Full Version : Current Context?



link19
05-18-2001, 11:46 AM
Hello,
Having trouble manipulating multiple GL views. I have tabbed views, all GL enabled. They render fine. Its when i hide and then show the tabs that the rendering disappears. For example, i click a button that shows some of the tabs and hides others. Then when i attempt to go back, my view no longer contains the scene it once did. I did not destroy and recreate it...only hid it.
I thought it had something to do with the current context, however ive played with it and had no luck http://www.opengl.org/discussion_boards/ubb/frown.gif. Using MFC BTW. In each of the view classes OnPaint, before i render i make my context current:
wglMakeCurrent(hDC, m_hGLContext);
If anyone has ideas or suggestions for me to try out, id appreciate it.
TIA

link19
05-22-2001, 04:35 AM
For rendering in multiple views, can someone simply explain the correct sequence of events to go through in creating/destroying a context.
TIA