I'm getting the following error in the debug file when I turn on glow:
05-21-2008 22:43:37 | TEXTURE MANAGER : BeginScene failed in StartRenderSurface, be sure to draw on rendersurface outside the usual TV.Clear/TV.RenderToScreen block
However... Glow works just fine and I'm quite certain that I'm doing what it says to do (only drawing on a rendersurface outside the TV.Clear/TV.RenderToScreen block).
My project also has as 3D mode (requiring red/blue glasses) which works great, yet this error is generated when I enable that (as it also works with a render surface).
My glow code is as follows:
rsGlow.StartRender(False)
World.DrawBackground()
rsGlow.StartRender(True)
Scene.RenderAll(True)
rsGlow.EndRender()
GraphicFX.UpdateGlow()
Then I draw the world:
TV.Clear()
World.DrawBackground()
TV.Clear(True)
Scene.RenderAll(True)
Phys.DrawLabels()
GraphicFX.DrawGlow()
Some additional code that draw the UI, etc. And finally:
TV.RenderToScreen()
So again... Everything works, but the debug file would suggest otherwise. And this error is generated every frame, so the debug file gets really big.
Any thoughts on why this happens?
Thanks...