diff options
author | SmileTheory <SmileTheory@gmail.com> | 2014-11-10 21:59:37 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:38:55 +0000 |
commit | 6d2d70c7fd0d6f56269f611146e65a715aa7898a (patch) | |
tree | 6845eac6697e856134d034ad6951635c8e507a10 /src/renderergl2/tr_shade.c | |
parent | e162c6334e08d3b6a9c4097b4014e7b3c922d0ff (diff) |
OpenGL2: remove lightmap support from generic glsl shader. This path was barely used and doing this compiles fewer shaders.
Diffstat (limited to 'src/renderergl2/tr_shade.c')
-rw-r--r-- | src/renderergl2/tr_shade.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/renderergl2/tr_shade.c b/src/renderergl2/tr_shade.c index f5778ea0..da293cb8 100644 --- a/src/renderergl2/tr_shade.c +++ b/src/renderergl2/tr_shade.c @@ -1352,16 +1352,6 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input ) else if ( pStage->bundle[1].image[0] != 0 ) { R_BindAnimatedImageToTMU( &pStage->bundle[0], 0 ); - - // - // lightmap/secondary pass - // - if ( r_lightmap->integer ) { - GLSL_SetUniformInt(sp, UNIFORM_TEXTURE1ENV, GL_REPLACE); - } else { - GLSL_SetUniformInt(sp, UNIFORM_TEXTURE1ENV, tess.shader->multitextureEnv); - } - R_BindAnimatedImageToTMU( &pStage->bundle[1], 1 ); } else @@ -1370,8 +1360,6 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input ) // set state // R_BindAnimatedImageToTMU( &pStage->bundle[0], 0 ); - - GLSL_SetUniformInt(sp, UNIFORM_TEXTURE1ENV, 0); } // |