Page 1 of 1

[BUG] Ogre CEGUI Renderer

Posted: Thu Nov 19, 2009 12:59
by Van
Ogre: 1.6.4 SVN branch
CEGUI 0.7.1 SVN Branch
MSVS 9.0+
DirectX August 2009 SDK

We believe this to be a CEGUI Ogre Renderer bug.

Original Post:

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.

Re: [BUG] Ogre CEGUI Renderer

Posted: Thu Dec 03, 2009 10:14
by CrazyEddie
I will check this out and see if we can work around it, though the issue seemingly occurs at a level of the abstraction lower than that which we talk to - so I'm not quite sure what we can do to mitigate the issue at the moment (perhaps it will become clear when I look into it?!).


Re: [BUG] Ogre CEGUI Renderer

Posted: Sun Dec 13, 2009 17:08
by CrazyEddie
Ok. I have looked into this today, but was unable to reproduce the issue. My test was performed using the CEGUI samples framework, I added a delay at a couple of places prior to the startRendering call to ensure I could switch away in time, but still no issue showed up.

Some details about my test set up:
CEGUI SVN v0-7 branch.
Ogre 1.6.4 SDK release.
MSVC++ 2008
nVidia GeForce GTX 275

I'm not sure if there's any changes in the relevant code between the Ogre 1.6.4 release and the svn branch, I would not have thought so.