View Full Version : Shared GL Context

09-08-2011, 11:06 PM

I would like to ask where I can find some more detailed information about what exactly is shared between GL contexts created as shared ones (with glXCreateNewContext or wglShareLists). GLX spec speaks only about display lists and textures. Can I take for granted that at least VBOs are shared too?

Thanks for your answers

Alfonse Reinheart
09-08-2011, 11:48 PM
Textures, buffer objects, and renderbuffers are all shared. FBOs, VAOs, and sampler objects are not.

09-09-2011, 12:28 AM
Just of curiosity - is there any official specification, or we just know that this is the way drivers usually work?

Alfonse Reinheart
09-09-2011, 01:43 AM
Yes, there is an official specification; it's called "The OpenGL Graphics System: A Specification (http://www.opengl.org/registry/)". Appendix D talks about object sharing, and has a list of what is and is not shared. I missed a few objects in my list.