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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
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