Sharing of Context

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sharing of Context

Wilds
Hey me again,

Do I need to create ALL resources on the master context if I want to get it shared accross all slaves?
Can't I create OpenGL resources on the slave context because I thought the context was set to be shared?

Currently I am setting opengl initialization state(depth, blend, etc..) on the master context, which isnt reflected to my slaves.... (still use default settings)
I have created a custom written batcher on a slave context but my other viewport(not gl viewport) cant use the batcher either.
Reply | Threaded
Open this post in threaded view
|

Re: Sharing of Context

gouessej
Administrator
Hey

You should look at com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT3. You can't share everything, it works at least with textures and buffer objects.
Julien Gouesse | Personal blog | Website