This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51
in repository iortcw.

commit 2d3558aef237de9c759a77edc0bf9a1c90f8bccc
Author: MAN-AT-ARMS <[email protected]>
Date:   Wed Jan 25 03:45:47 2017 -0500

    All: Rend2: Render dlights only when r_lightmap is 0
---
 MP/code/rend2/tr_shade.c | 2 +-
 SP/code/rend2/tr_shade.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/rend2/tr_shade.c b/MP/code/rend2/tr_shade.c
index 2331560..fab4f16 100644
--- a/MP/code/rend2/tr_shade.c
+++ b/MP/code/rend2/tr_shade.c
@@ -1891,7 +1891,7 @@ void RB_StageIteratorGeneric( void )
        // 
        // now do any dynamic lighting needed
        //
-       if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE
+       if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE && 
r_lightmap->integer == 0
                && !(tess.shader->surfaceFlags & (SURF_NODLIGHT | SURF_SKY) ) ) 
{
                if (tess.shader->numUnfoggedPasses == 1 && 
tess.xstages[0]->glslShaderGroup == tr.lightallShader
                        && (tess.xstages[0]->glslShaderIndex & 
LIGHTDEF_LIGHTTYPE_MASK) && r_dlightMode->integer)
diff --git a/SP/code/rend2/tr_shade.c b/SP/code/rend2/tr_shade.c
index 29932b6..7e3e1b1 100644
--- a/SP/code/rend2/tr_shade.c
+++ b/SP/code/rend2/tr_shade.c
@@ -1893,7 +1893,7 @@ void RB_StageIteratorGeneric( void )
        // 
        // now do any dynamic lighting needed
        //
-       if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE
+       if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE && 
r_lightmap->integer == 0
                && !(tess.shader->surfaceFlags & (SURF_NODLIGHT | SURF_SKY) ) ) 
{
                if (tess.shader->numUnfoggedPasses == 1 && 
tess.xstages[0]->glslShaderGroup == tr.lightallShader
                        && (tess.xstages[0]->glslShaderIndex & 
LIGHTDEF_LIGHTTYPE_MASK) && r_dlightMode->integer)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to