Login  Register

Re: Rules for sharing context between GLJPanels?

Posted by gouessej on Aug 29, 2014; 9:15pm
URL: https://forum.jogamp.org/Rules-for-sharing-context-between-GLJPanels-tp4032950p4032980.html

A small change in your own code or in our implementation might break that, you shouldn't rely on this kind of assumption. It works now, it might no longer work in several months. Personally, I wasted a lot of time with invalidated GL instances, I prefer manipulating them only in some software layers (as few as possible), I never pass them, I do nothing to encourage other contributors to store them.

In practice, you don't see several instances now but in theory, we don't guarantee that you'll get the same GL instance between 2 successive GLEventListener.display() calls.
Julien Gouesse | Personal blog | Website