PDA

View Full Version : VBO between opengl context



Johnson.N.M.B
08-18-2004, 02:16 AM
Hello!

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~

Johnson.N.M.B

skynet
08-18-2004, 08:03 AM
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.

Johnson.N.M.B
08-18-2004, 06:28 PM
Thank'u, it works.