CEGUI 0.7.1 SVN Branch
DirectX August 2009 SDK
We believe this to be a CEGUI Ogre Renderer bug.
Original Post: http://www.ogre3d.org/forums/viewtopic.php?f=4&t=53802
I think there is a bug in the D3D9RenderSystem or related system. I can reproduce it every time.
When starting Ogre in WINDOW mode (i.e. not full screen) and the render window does NOT remain as the foreground task you get a NULL pointer exception.
The error occurs here:
Line 2284 in function D3D9RenderSystem::_setCullingMode()
Code: Select all
bool flip = ((mActiveRenderTarget->requiresTextureFlipping() && !mInvertVertexWinding) ||
(!mActiveRenderTarget->requiresTextureFlipping() && mInvertVertexWinding));
mActiveRenderTarget is NULL.
How to reproduce:
1. Start Ogre
2. Select DirectX 9 Renderer
3. Full Screen = NO
After pressing the OK button, quickly switch tasks. You want to do this prior to calling Ogre::Root::startRendering(). The error should occur.