Login  Register

Problem when using an external context

Posted by herve on Mar 23, 2012; 2:02pm
URL: https://forum.jogamp.org/Problem-when-using-an-external-context-tp3851637.html

Hello,

We have a C app which creates its own OpenGL context, and pass it to JOGL:
- we create a Java VM
- before starting the drawing in C, when we are sure that we have a valid OpenGL context available, we call a Java method through JNI where we get a GLDrawableFactory, and then call the createExternalContext method
- then we can draw our OpenGL content in JOGL

This worked ok in JOGL 1.1.1, but not in JOGL 2.0 rc5. However, there is no crash at all, only it seems that the Hava code never goes after the part where it tries to get the factory.

Is it a bug in the current rc5 version of JOGL, or us it that we forgot to do something before trying to get the factory (which was not necessary in 1.1.1) ?.

FYI, the same version work ok when standalone.

Any clues?

Hervé