RTT seems to cause problems at fullscreen-mode using Direct3D9 when you swith windows. Application cannot "re-open" window after that.
The bug can be re-produced easily, eg. by using fullscreen-mode at Irrlicht's RenderToTexture -example.
Change:
Code: Select all
IrrlichtDevice *device =
createDevice(driverType, core::dimension2d<s32>(640, 480),
16, true, false);
2. press alt+tab
3. Return to the application -> doesn't work.
Here's error log:
Irrlicht Engine version 1.4
Microsoft Windows XP Personal Service Pack 2 (Build 2600)
Using renderer: Direct3D 9.0
RADEON X600/X550 Series ati2dvag.dll 6.14.10.6641
Loaded mesh: ../../media/faerie.md2
Loaded texture: ../../media/faerie2.bmp
DIRECT3D9 device lost.
Resizing window (640 480)
Resetting D3D9 device.
Resetting failed.
Resetting D3D9 device.
Resetting failed.
Could not get previous render target.
Resetting D3D9 device.
Resetting failed.
Could not get previous render target.
Resetting D3D9 device.
Resetting failed.
...
The same bug was also present in Irrlicht v1.3. Tested on Windows XP and Vista.