Login  Register

multiple GLCanvas instances not working with invoke(true,GLRunnable)

Posted by gouessej on Apr 10, 2012; 10:02pm
URL: https://forum.jogamp.org/multiple-GLCanvas-instances-not-working-with-invoke-true-GLRunnable-tp3900956.html

Hi

I tried to fix this bug:
https://jogamp.org/bugzilla/show_bug.cgi?id=572

I succeeded in working around it when using NewtWindow and NewtCanvasAWT but when I tried to apply the same fix, it worked only when I used a single GLCanvas in an AWT frame. Actually, I use invoke(true, GLRunnable) to perform all OpenGL operations. When I use several GLCanvases in the same Frame, the first GLCanvas is initialized and drawn successfully a first time but then it stays blocked on JAWTUtil.lockToolkit() when the second GLCanvas tries to do the same.

What can I do to solve this problem?
Julien Gouesse | Personal blog | Website