Hi...
I have a GLGraphicsOffScreen buffer, and a GLTextureWindow in my project.
The buffer is displaying on my first screen fine, but I am trying to copy the texture of my buffer to a second texture window on my second screen. It is creating the window (I can see it being created and cover my desktop), but it is completely black, and throwing the error mentioned in the subject line.
Here is the code:
win = new GLTextureWindow(this, -projectorWidth, 0, projectorWidth, projectorHeight );
winGraphics = new GLGraphicsOffScreen( this, projectorWidth, projectorHeight );
win.setTexture( winGraphics.getTexture() );
Full Error Message below:
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: wglShareLists(0x20000, 0x20001) failed: error code 0
at com.sun.opengl.impl.windows.WindowsGLContext.create(WindowsGLContext.java:136)
at com.sun.opengl.impl.windows.WindowsGLContext.makeCurrentImpl(WindowsGLContext.java:150)
at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(WindowsOnscreenGLContext.java:66)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:310)
at java.awt.Component.dispatchEventImpl(Component.java:4706)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Library is current stable (0.9.9.1), but I've also tested it with the latest unstable (20110411).
Currently on Windows 7, but this sketch was working before on both Windows and OS X 10.6
Processing version is 0192, as I am getting other GLGraphic error messages if I use a more recent version.
Any thoughts appreciated.
1