AWTGLCanvas multiple displays working on OSX but not on Linux.

Started by Talin, August 12, 2012, 02:07:23

Previous topic - Next topic

Talin

I have an app that uses LWJGL indirectly via LibGdx. The app is a level editor that provides multiple OpenGL displays. So far I have been using this on OS X which works great. However, when I try to recompile and run the same app on Linux, the shared context between the two AWTGLCanvas objects no longer works. It acts as if the two canvases are each in a separate context - that is, textures or shaders created in one context fail to render when displayed on the other context.

I'm using the AWTGLCanvas constructor that allows passing in another AWTCanvas so that both can share the same OpenGL context.