Sorry if this is a Noobie question
I have a question regarding GLContext and Threading. I have an application which given a data set, it decodes it , then renders it and outputs a png file. The whole application is threaded so that it can process multiple files at once. I have been working to migrate to jogl to speed up the rendering. I am using pbuffers and I have a created a demo program which just does the rendering and output for a sinlge pbuffer without threading. The demo program creates a pbuffer, draws a triangle and then outputs an image using the new ScreenShot class and ImageIO. This works without a problem. But when I implement it into my multithreaded application I get problems associated with GLContext from the ScreenShot class. I get a null pointer exception in the ScreenShot classon the line GLU.getCurrentGL(); within readToBufferedImage
Is it possible to have multiple threads each with their own PBuffer for drawing and output?
I can provide code if needed.
Thanks
jason