From 43c7250cfde2d4b79896919833a0435275cb8be3 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 2 Nov 2013 02:59:31 -0500 Subject: Remove vertexLightmap from textureBundle_t, it's never qtrue --- src/renderergl2/tr_shade.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/renderergl2/tr_shade.c') diff --git a/src/renderergl2/tr_shade.c b/src/renderergl2/tr_shade.c index 35d2b283..06dc94b6 100644 --- a/src/renderergl2/tr_shade.c +++ b/src/renderergl2/tr_shade.c @@ -1326,12 +1326,7 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input ) // // set state // - if ( pStage->bundle[0].vertexLightmap && ( (r_vertexLight->integer && !r_uiFullScreen->integer) || glConfig.hardwareType == GLHW_PERMEDIA2 ) && r_lightmap->integer ) - { - GL_BindToTMU( tr.whiteImage, 0 ); - } - else - R_BindAnimatedImageToTMU( &pStage->bundle[0], 0 ); + R_BindAnimatedImageToTMU( &pStage->bundle[0], 0 ); GLSL_SetUniformInt(sp, UNIFORM_TEXTURE1ENV, 0); } @@ -1355,7 +1350,7 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input ) } // allow skipping out to show just lightmaps during development - if ( r_lightmap->integer && ( pStage->bundle[0].isLightmap || pStage->bundle[1].isLightmap || pStage->bundle[0].vertexLightmap ) ) + if ( r_lightmap->integer && ( pStage->bundle[0].isLightmap || pStage->bundle[1].isLightmap ) ) { break; } -- cgit