im trying to resize my device, now i get errors and eventually a crash. The error i get is the following:
Direct3D9: (ERROR) :All user created D3DPOOL_DEFAULT surfaces must be freed before ResetEx can succeed. ResetEx Fails.
pVideodriver->OnResize(irr::core::dimension2d<irr::u32>(width, height));
This is the code i use to resize my device:
Code: Select all
pVideodriver->OnResize(irr::core::dimension2d<irr::u32>(width, height));
irr::scene::ISceneManager* pSceneManager = _device->getSceneManager();
if(pSceneManager)
{
irr::scene::ICameraSceneNode* pCamera = pSceneManager->getActiveCamera();
if(pCamera)
pCamera->setAspectRatio((float)width / (float)height);
}
http://irrlicht.sourceforge.net/forum/v ... ze#p253568
Hybrid said the following:
andThis was also fixed in a recent version of Irrlicht. IIRC, it was somewhere in the 1.7.x releases, but you might also check out the nightly built SVN version.
Can i conclude that we are talking about the same issue here?Well, since it would change existing applications, it might have gone into SVN/trunk only (i.e. ready for Irrlicht 1.. Maybe give that version a try. There are not too many incompatibilities in the API, so updating should be rather straight forward.
Anyway if someone has encountered the same issue and knows how to solve this please help point me in the right direction