Login  Register

Re: Hello! and Error: ...incorrectly used with a different GLContext...

Posted by gouessej on Aug 11, 2016; 8:00am
URL: https://forum.jogamp.org/Hello-and-Error-incorrectly-used-with-a-different-GLContext-tp4036820p4037048.html

Only one GLContext must be current at a time and the GL object you use must match with the GLContext of the current GLAutoDrawable. I just hope that you don't store any GL instances in fields... Use GLContext.getCurrentGL() and GLContext.getCurrent(), you won't have any trouble or get them from your drawable. I can do nothing more with a SSCCE, a real SSCCE, not a piece of code which might miss the faulty part.
Julien Gouesse | Personal blog | Website