Reply – Renderer.updateTexture2DSubImage...
Your Name
Subject
Message
or Cancel
In Reply To
Renderer.updateTexture2DSubImage...
— by ThomasR ThomasR
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.