PDA

View Full Version : Multiple GL Views



link19
05-11-2001, 06:19 AM
Hi all,
Im using VC6 (MFC).
Ive multiple OpenGL enabled views in my app. The user can navigate from one to the other by tabbing (views are separated by tabs). All the tabbed views are created in MainFrames OnCreateClient. The issue is that if i do create more than one OpenGL view...it screws up the other. ONe works great on its own, but when i add another to the framework, the initial GL view does not appear. Its as if the creation of one GL view is interfering with another. Has any1 ever seen this before.
Any help would be appreciated...

link19
05-11-2001, 07:48 AM
Forget it...silly mistake. Had to make the context not current after OnPaint() of initial view, then make it current for the next view...