context sharing

heya,

say how about sharing with two contexts each on a different pixelformat, specificaly one is stereo the other is not?

Just try and you’ll find out?
As long as it’s running on the same OpenGL implementation and the pixelformats are similar there are not many reasons for this to not work.
(Make sure the second context is not current while calling wglShareLists.)

welp its not working. the problem is i don’t know whether it even should work.

where can i find a good reference on the subject? the basic documentations are vague at best…

There is only Microsoft’s documentation. wgl functions are MS Windows specific.
If you have two pixelformats you need to have two windows. Are these spawned by the same process? If not, this ain’t working.

got it working.
as long as all other attributes with the exception of STEREO are the same.
i created a “shared” context with which both rendering contexts are shared one at a time. there is only one other context at any given time in adition to the “shared” one. ofcourse a new window must be created for each PIXELFORMAT, i just keep two ready and replace’em on demand.

thnx.