[ioquake3] 19/25: OpenGL2: Generate less shaders when r_sunlightMode is disabled.
Simon McVittie
smcv at debian.org
Sun Mar 12 18:23:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 468da0fabca2f21b811a501c184b986e270c5113
Author: SmileTheory <SmileTheory at gmail.com>
Date: Thu Jan 26 19:58:28 2017 -0800
OpenGL2: Generate less shaders when r_sunlightMode is disabled.
Original patch by https://github.com/inolen in https://github.com/ioquake/ioq3/pull/36
---
code/renderergl2/tr_glsl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/renderergl2/tr_glsl.c b/code/renderergl2/tr_glsl.c
index 84f36ec..966c217 100644
--- a/code/renderergl2/tr_glsl.c
+++ b/code/renderergl2/tr_glsl.c
@@ -1015,7 +1015,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/ioquake3.git
More information about the Pkg-games-commits
mailing list