Login  Register

Renderer.updateTexture2DSubImage...

Posted by ThomasR on Feb 16, 2018; 7:53pm
URL: https://forum.jogamp.org/Renderer-updateTexture2DSubImage-tp4038649.html

Hi,

How to use this? I'm trying to update a texture in place (ie, w/o modifying the scene graph) but I get this exception:

com.jogamp.opengl.GLException: pool-1-thread-9: No OpenGL context current on this thread
        at com.jogamp.opengl.GLContext.getCurrentGL(GLContext.java:510)
        at com.ardor3d.renderer.jogl.JoglRenderer.updateTexSubImage(JoglRenderer.java:547)
        at com.ardor3d.renderer.jogl.JoglRenderer.updateTexture2DSubImage(JoglRenderer.java:521)

First of all, is this the proper use of this method? I want to rapidly update the byte values of a texture.