We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to load a texture inside a PGraphics:
PGraphics offscreen;
void setup()
{
size(1200, 800, OPENGL);
offscreen = createGraphics(600, 400, OPENGL);
...
PGL pgl = offscreen.beginPGL();
IntBuffer textureID = IntBuffer.allocate(1);
-> pgl.genTextures(1, textureID);
...
offscreen.endPGL();
}
but I get a NullException error in the indicated line. Any suggestion?
Thanks in advance.