Direct Access to hglrc in WindowsGLContext?

I am trying to share textures between a rendering context created with jogl and one that is not. I just need to call:

WGL.wglShareLists( hglrc1, hglrc2 );

but WindowsGLContext.getHGLRC() is protected as is GLCanvas.getContext()

I could recompile everything making those public, but I do not seem to get all the required files from CVS. for example WGL does not exist in:

https://jogl.dev.java.net/source/browse/jogl/src/net/java/games/jogl/impl/windows/

am i missing something really basic?

thanks
ryan

Never tried it but GLDrawableFactory has methods to create a new GLDrawable that is shared with an old one. That should do the trick :slight_smile:

yes, but it can only share with contexts made by the DrawableFactory.

from javadoc:

“the drawable must either be null or have been fabricated from this factory or by classes in this package”

thanks