mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
Remove vertexLightmap from textureBundle_t, it's never qtrue
This commit is contained in:
parent
6bd52de44e
commit
ae0e09aba9
4 changed files with 4 additions and 16 deletions
|
@ -262,7 +262,6 @@ typedef struct {
|
||||||
|
|
||||||
int videoMapHandle;
|
int videoMapHandle;
|
||||||
qboolean isLightmap;
|
qboolean isLightmap;
|
||||||
qboolean vertexLightmap;
|
|
||||||
qboolean isVideoMap;
|
qboolean isVideoMap;
|
||||||
} textureBundle_t;
|
} textureBundle_t;
|
||||||
|
|
||||||
|
|
|
@ -1145,11 +1145,6 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
||||||
//
|
//
|
||||||
// set state
|
// set state
|
||||||
//
|
//
|
||||||
if ( pStage->bundle[0].vertexLightmap && ( (r_vertexLight->integer && !r_uiFullScreen->integer) || glConfig.hardwareType == GLHW_PERMEDIA2 ) && r_lightmap->integer )
|
|
||||||
{
|
|
||||||
GL_Bind( tr.whiteImage );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
R_BindAnimatedImage( &pStage->bundle[0] );
|
R_BindAnimatedImage( &pStage->bundle[0] );
|
||||||
|
|
||||||
GL_State( pStage->stateBits );
|
GL_State( pStage->stateBits );
|
||||||
|
@ -1160,7 +1155,7 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
||||||
R_DrawElements( input->numIndexes, input->indexes );
|
R_DrawElements( input->numIndexes, input->indexes );
|
||||||
}
|
}
|
||||||
// allow skipping out to show just lightmaps during development
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -350,7 +350,6 @@ typedef struct {
|
||||||
|
|
||||||
int videoMapHandle;
|
int videoMapHandle;
|
||||||
qboolean isLightmap;
|
qboolean isLightmap;
|
||||||
qboolean vertexLightmap;
|
|
||||||
qboolean isVideoMap;
|
qboolean isVideoMap;
|
||||||
} textureBundle_t;
|
} textureBundle_t;
|
||||||
|
|
||||||
|
|
|
@ -1325,11 +1325,6 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
||||||
//
|
//
|
||||||
// set state
|
// 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);
|
GLSL_SetUniformInt(sp, UNIFORM_TEXTURE1ENV, 0);
|
||||||
|
@ -1354,7 +1349,7 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
|
||||||
}
|
}
|
||||||
|
|
||||||
// allow skipping out to show just lightmaps during development
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue