Code: Select all
void onFinishLoading(...)
{
[...]
IImage *im = driver->createImageFromData(irr::video::ECF_A8R8G8B8 ,dimension2d<u32>(WIDTH,HEIGHT),buffer,true,true);
ITexture *res = driver->findTexture("resultado");
if(res!=0)
{
driver->removeTexture(res);
}
ITexture *txt = driver->addTexture("resultado",im);
[...]
}
The pointer txt gets a white texture . This don't happen with EDT_DIRECT3D9, EDT_SOFTWARE, ...