Hello, I have another small question regarding textures and texture objects.
is there a possibility to know what is the current texture object that is bound? I need it since I render to FBO and I want to read it using to Image::readFromCurrentTexture. In order to be sure that the "Current Texture" is the one attached to the FBO as the color buffer, I call the bind of the osg::TextureObject that correspond to the ContextID. something like: texture.getTextureObject(contextID)->bind(); The problem is that the call to the bind function, really slows down the rendering (from ~200Hz down to ~110Hz). I thought to check if the texture objects needs binding and only if so, call the bind. thanks, Guy. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/