dear friends,
I asked a similar question on OF forum (copied here for your convenience). I'd like to ask you the "specifications" of the texture Arena passes to its plugins, it seems there is some mismatch with the format used by OpenFrameworks that is breaking the drawing when binding it with a mesh.

in the effort to write working FFGL plugins with OF080 I am currently struggling with a difficult (for me) problem. The data coming from host app is basically a texture handle with width and height info:

And now the weird part: the texture so created is fine if you try to use it to draw on the screen (that is the host window where output goes) but when you try to bind it to a mesh to have it displayed the drawing is corrupted, showing a uniform color with - at times - small triangles of a different shade.

Playing with the code I noticed that writing the texture to an array of pixels (via ofImage) and taking back the texture works, the new texture correctly binds to the mesh and draws.

I think the problem is that OF uses GL_TEXTURE_RECTANGLE by default, so texture coordinates are mapped to the image size ( eg. [0...512] for a 512x512 pixel texture ) as opposed to the typical [0..1] range with GL_TEXTURE_2D.

By writing the texture back to an ofImage you creating a new texture (using GL_TEXTURE_RECTANGLE) so everything works as expected.

I am not aware about any method that allows converting a texture from a type to another directly on the GPU, but one thing you could do is adjust the texture coordinates of your mesh to work in the correct range.