VBO between opengl context


It’s time to using Pbuffer for my render to texture feature now. I created the Pbuffer and sharing the display list with the original context. But access avoilation occured when rendering VBO buffers. It works well without VBO buffer.
So VBO doesn’t share between context? Or i’v missing some thing? Please help~


Why not use the same context for both, Framebuffer and Pbuffer?
I tried it, it works. Though, you should use wglMakeContextCurrentARB() instead of wglMakeCurrent(), because it seems to have relaxed conditions on when two device contexts may share the same RenderContext.

Thank’u, it works.