Shared OpenGL context

Hello,

I’m developping a plug-in for Maya and I need to see the Maya objects on my plug-in. These objects are renderer with OpenGL on my software but if I move the object on my plug-in or on Maya I have to see on both software the displacement.

I have lot of issues so I do some context copies using several OpenGL contexts… but I’am not sure It’s the right way to do.

The Maya SDK returns its OpenGL context and I think that a better way whould be to use this context on my plug in but is it possible? I think it is because Maya manages the sync but maybe there are others issues…

Second question: Now I try adapt my plug in on MacOS X, is there any equivalent function to wglShareList or what the method to share the display list and texture on MacOS X.

Cheer