OpenGL2: Generate less shaders when r_sunlightMode is disabled.

Original patch by https://github.com/inolen in https://github.com/ioquake/ioq3/pull/36
This commit is contained in:
SmileTheory 2017-01-26 19:58:28 -08:00
parent 6b514ee532
commit 468da0fabc
1 changed files with 1 additions and 1 deletions

View File

@ -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;