Working on a 3D editor type app with 4 views (left top etc).
At the moment, when the app is first run the contexts are created and the rendering does work and show as expected in the 4 areas of the app.
Now for the problems;
At this stage I am rendering a simple cube in each view for testing purposes. I added some code to get the cube to rotate. If I only activate (wglmakecurrent) one of the contexts, then the rotation works as expected. If I activate all 4 of the contexts the cube does not rotate.
Same thing if I try and change the location of the cube. In one window it works, but once all 4 contexts are activated it fails (actually it only updates the last activated context).
Any ideas?
Code for display is basically
//first view
wglMakeCurrent(cameraDC,cameraRC);
<render opengl stuff here>
//second view
wglMakeCurrent(leftDC,leftRC);
<render opengl stuff here>
etc
etc for the other 2 views
The contexts are created when the app first starts up and are not deleted.
Writing this in Delphi if that helps at all.
Any help or ideas will be greatly appreciated.
Thanks,
Jason.