Hi,
I cut an image in 16*16 bitmap files (12M each). I want to put one by one in an
osg::texture2d, after use, I want to unload it just after (to avoid trouble
with memory).
My code is :
[code]
std::pairint, int XY = std::make_pair(ix, iy);
osg::StateSet* p_stateSet =
1. If you use osg::ref_ptr for your Texture2D objects, they should be
cleaned up when you remove any references to them (ie just remove the
geode(s) the texture is attached to or any other references to the texture)
2. bad_alloc usually means you're running out of memory.
On Fri, Jul 26, 2013
2 matches
Mail list logo