mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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:
parent
6b514ee532
commit
468da0fabc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue