Reply – Re: Renderer.updateTexture2DSubImage...
Your Name
Subject
Message
or Cancel
In Reply To
Re: Renderer.updateTexture2DSubImage...
— by gouessej gouessej
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.
Julien Gouesse | Personal blog | Website