[colobot] 07/74: Do not render the shadow map when pause blur is active
Didier Raboud
odyx at moszumanska.debian.org
Mon Nov 7 07:49:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit ffd688e2d72e210385830dced914e126f8bb90d4
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Jul 24 16:56:47 2016 +0200
Do not render the shadow map when pause blur is active
---
src/graphics/engine/engine.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp
index 36f0829..bbda7dc 100644
--- a/src/graphics/engine/engine.cpp
+++ b/src/graphics/engine/engine.cpp
@@ -3187,9 +3187,6 @@ void CEngine::Render()
color = m_backgroundColorDown;
m_device->SetClearColor(color);
- // Render shadow map
- if (m_drawWorld && m_shadowMapping)
- RenderShadowMap();
// Begin the scene
m_device->SetRenderState(RENDER_STATE_DEPTH_WRITE, true);
@@ -3203,6 +3200,10 @@ void CEngine::Render()
}
else
{
+ // Render shadow map
+ if (m_drawWorld && m_shadowMapping)
+ RenderShadowMap();
+
UseMSAA(true);
DrawBackground(); // draws the background
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list