[iortcw] 23/95: All: Rend2: Generate less shaders when r_sunlightMode is disabled
Simon McVittie
smcv at debian.org
Fri Sep 8 10:41:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to tag 1.51
in repository iortcw.
commit 296dc8ed50d53146181b9bd82021f5e7f972057b
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Fri Jan 27 02:58:48 2017 -0500
All: Rend2: Generate less shaders when r_sunlightMode is disabled
---
MP/code/rend2/tr_glsl.c | 2 +-
SP/code/rend2/tr_glsl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/MP/code/rend2/tr_glsl.c b/MP/code/rend2/tr_glsl.c
index 1709b6f..da8d347 100644
--- a/MP/code/rend2/tr_glsl.c
+++ b/MP/code/rend2/tr_glsl.c
@@ -1033,7 +1033,7 @@ void GLSL_InitGPUShaders(void)
if ((i & LIGHTDEF_USE_PARALLAXMAP) && !r_parallaxMapping->integer)
continue;
- if (!lightType && (i & LIGHTDEF_USE_SHADOWMAP))
+ if ((i & LIGHTDEF_USE_SHADOWMAP) && (!lightType || !r_sunlightMode->integer))
continue;
attribs = ATTR_POSITION | ATTR_TEXCOORD | ATTR_COLOR | ATTR_NORMAL;
diff --git a/SP/code/rend2/tr_glsl.c b/SP/code/rend2/tr_glsl.c
index 1709b6f..da8d347 100644
--- a/SP/code/rend2/tr_glsl.c
+++ b/SP/code/rend2/tr_glsl.c
@@ -1033,7 +1033,7 @@ void GLSL_InitGPUShaders(void)
if ((i & LIGHTDEF_USE_PARALLAXMAP) && !r_parallaxMapping->integer)
continue;
- if (!lightType && (i & LIGHTDEF_USE_SHADOWMAP))
+ if ((i & LIGHTDEF_USE_SHADOWMAP) && (!lightType || !r_sunlightMode->integer))
continue;
attribs = ATTR_POSITION | ATTR_TEXCOORD | ATTR_COLOR | ATTR_NORMAL;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list