PDA

View Full Version : Shared GL Context



_MaB_
09-09-2011, 12:06 AM
Hello,

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-09-2011, 12:48 AM
Textures, buffer objects, and renderbuffers are all shared. FBOs, VAOs, and sampler objects are not.

_MaB_
09-09-2011, 01: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, 02: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.