I am currently working on a configuration menu. I´m using the configuration properties retrieved from Ogre. In order to facilitate changing properties like Full Screen, VSync etc. without restarting Ogre, I use the the "1x1 pixel window trick" described by sinbad in the following thread:
http://www.ogre3d.org/forums/viewtopic. ... 11&start=0
Unfortunately I am always encountering an exception whenever I change the secondary window (in which the actual rendering occurs) to fullscreen. I am getting the following exception when I recreate the window with full screen set to true using D3D9 or when I set it to fullscreen afterwards:
Code: Select all
OGRE EXCEPTION(3:RenderingAPIException): Unable to get the swap chain in D3D9RenderWindow ::acquireRenderWindowResources at ..\..\..\..\..\RenderSystems\Direct3D9\src\OgreD3D9Device.cpp (line 1036)
It would be great if anybody could share his experience with multiple windows.
xad