PDA

View Full Version : Multiple contexts and shared memory...



Groovounet
06-14-2006, 07:36 AM
Hello,

When we switch between OpenGL contexts, witch kind of data are keeped by the new current context?

cheer

dimensionX
06-14-2006, 10:03 AM
Can you elaborate a little more ?

Groovounet
06-14-2006, 10:26 AM
When I use wglMakeCurrent could you tell me if the new current context keep the same value of the previous one for the modelview matrix, GL_DEPTH_TEST, textures are still available or vertex buffer object as well ?

Overmind
06-14-2006, 11:08 AM
States such as the current modelview matrix, material state, enables, ... won't be shared. Every context has it's own seperate state.

Textures, shaders, VBOs, display lists (in general: data objects) are seperate per default, but you can share them between contexts with wglShareLists.