Re: How to refer GL context in AWT Mouse Event
Posted by
gouessej on
Apr 29, 2017; 6:55am
URL: https://forum.jogamp.org/How-to-refer-GL-context-in-AWT-Mouse-Event-tp4037905p4037908.html
Hi
As I told you on StackOverflow, you shouldn't even try to do so, it's a bad idea, it would require to make the OpenGL context current on the AWT thread in your mouse event and release it when you're done, you should rather use GLAutoDrawable.invoke(boolean, GLRunnable) instead.
Please show some source code, I'm not sure that you really need a GL context to perform your conversion.
By the way, some engines store and treat the mouse and key events at a more appropriate time (not directly in the listeners) to solve this kind of problem.