Re: Renderer.updateTexture2DSubImage...
Posted by
gouessej on
Feb 19, 2018; 9:45pm
URL: https://forum.jogamp.org/Renderer-updateTexture2DSubImage-tp4038649p4038660.html
How do you build your canvas renderer? It doesn't work in your case but it works in mine because this is what I have done for years in my game. As the context is made current once and released only at the end of the execution, when I'm on the correct thread, the renderer succeeds in retrieving the context. When contextDropAndReclaimOnDrawEnabled is set to true, it's up to the programmer to ensure that the OpenGL context is current before using OpenGL calls in enqueued callables because you could wish to perform some non OpenGL related operations before rendering.