I have two pbuffers with the same pixel format. I create the first pbuffer first and setup rendering states. Right after the sencond pbuffer is created (before it is made current), I calls
wglCopyContext(pbuffer_1.hrc, pbuffer_2.hrc, GL_ALL_ATTRIB_BITS). In NVidia card, it crashes. In ATI Radeon 9600XT, it didn’t crash, but the texture in second pbuffer is gone no matter how I enable and load the texture when second pbuffer is made current. If I comment out wglCopyContext, everything works fine except that I have to setup rendering state again.
Any one has any experience on wglCopyContext?