GLTexture and main thread
in
Contributed Library Questions
•
1 year ago
With GLGraphics 1.0 when I execute this code:
- Thread thread = new Thread(new Runnable()
- {
- @Override
- public void run()
- {
- image = loadImage(filename);
- texture.putImage(image);
- }
- });
- thread.start();
where
image is a PImage and
texture a GLTexture, I get an Invalid Memory Access error, because of the line 7.
Is it possible to put a PImage into a GLTexture in a thread different from the main?
Thanks.
paolofuse
1