Ogre Version: 14.1.2
Operating System: Windows 10-11
Render System: Direct3D9
Hello!
I am having an issue when moving my application window from one monitor to another one.
It completely freezes for a couple of seconds and then it seems to lose some resources and some objects become black.
I have tried this on 3 different computers and the same thing happens with multiple monitors.
I can resize the window without anything strange happening, so it has nothing to do with that.
Also, there is no issue for Direct3D11, only for Direct3D9.
The same bug also happens in the SampleBrowser for Ogre 14.1.2.
To reproduce it for the SampleBrowser, first delete the cache in C:\Users\USERNAME\Documents\OGRE Sample Browser, then start the application, choose Direct3D9 and just start with the default variables. Then go into the Cube Mapping sample, alt-tab (so you can use your mouse) and drag the window to another monitor. As soon as you let go on the other monitor, it lags for a couple of seconds and then the screen in the window goes mostly black.
The Ogre log after I drag the window into the other monitor shows a lot of textures being loaded, then followed by a lot of these lines for many textures (probably as many as were previously loaded):
Code: Select all
23:45:40: D3D9 device: 0x[000000000AD37200] destroy. Releasing D3D9 texture: leaf.png
23:45:40: Released D3D9 texture: leaf.pngI have also tried to use this, but it does not fix anything:
Code: Select all
m_RenderSystem->setConfigOption("Auto hardware buffer management", "Yes");
m_RenderSystem->setConfigOption("Use Multihead", "Auto");
m_RenderSystem->setConfigOption("Resource Creation Policy", "Create on all devices");Is this a known bug for Direct3D9?
