diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-01-25 00:19:35 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-01-25 00:19:35 +0300 |
commit | f1948b363d6cd01ec6cfcd2d69101fdb9407aff6 (patch) | |
tree | a7bf446399b8fe672e02c3b444e0a9ddd665a5dc | |
parent | ca5fe954f4f26972ad4ff7a07417df7253ad7f6f (diff) |
BGE patch 18211: Bug Fix for: [#18175] error on anaglyph view of a splitted viewport.
-rw-r--r-- | source/gameengine/Ketsji/KX_KetsjiEngine.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp index 8bcda4479e1..1271474802c 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp @@ -732,6 +732,26 @@ void KX_KetsjiEngine::Render() // do the rendering //RenderFrame(scene); RenderFrame(scene, cam); + + list<class KX_Camera*>* cameras = scene->GetCameras(); + + // Draw the scene once for each camera with an enabled viewport + list<KX_Camera*>::iterator it = cameras->begin(); + while(it != cameras->end()) + { + if((*it)->GetViewport()) + { + if (scene->IsClearingZBuffer()) + m_rasterizer->ClearDepthBuffer(); + + m_rendertools->SetAuxilaryClientInfo(scene); + + // do the rendering + RenderFrame(scene, (*it)); + } + + it++; + } } } // if(m_rasterizer->Stereo()) |