Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings

This commit is contained in:
Thilo Schulz committed 2011-07-29 12:27:00 +00:00
1 parent 1ea7ab1f42
commit 23f6fd1633
85 files changed
+246 -496

No files matched your search

+10 -7
View File
@@ -1174,8 +1174,10 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
void RB_StageIteratorGeneric( void )
{
shaderCommands_t *input;
shader_t *shader;
input = &tess;
shader = input->shader;
RB_DeformTessGeometry();
@@ -1192,10 +1194,10 @@ void RB_StageIteratorGeneric( void )
//
// set face culling appropriately
//
GL_Cull( input->shader->cullType );
GL_Cull( shader->cullType );
// set polygon offset if necessary
if ( input->shader->polygonOffset )
if ( shader->polygonOffset )
{
qglEnable( GL_POLYGON_OFFSET_FILL );
qglPolygonOffset( r_offsetFactor->value, r_offsetUnits->value );
@@ -1207,7 +1209,7 @@ void RB_StageIteratorGeneric( void )
// to avoid compiling those arrays since they will change
// during multipass rendering
//
if ( tess.numPasses > 1 || input->shader->multitextureEnv )
if ( tess.numPasses > 1 || shader->multitextureEnv )
{
setArraysOnce = qfalse;
qglDisableClientState (GL_COLOR_ARRAY);
@@ -1275,7 +1277,7 @@ void RB_StageIteratorGeneric( void )
//
// reset polygon offset
//
if ( input->shader->polygonOffset )
if ( shader->polygonOffset )
{
qglDisable( GL_POLYGON_OFFSET_FILL );
}
@@ -1291,7 +1293,6 @@ void RB_StageIteratorVertexLitTexture( void )
shader_t *shader;
input = &tess;
shader = input->shader;
//
@@ -1312,7 +1313,7 @@ void RB_StageIteratorVertexLitTexture( void )
//
// set face culling appropriately
//
GL_Cull( input->shader->cullType );
GL_Cull( shader->cullType );
//
// set arrays and lock
@@ -1365,8 +1366,10 @@ void RB_StageIteratorVertexLitTexture( void )
void RB_StageIteratorLightmappedMultitexture( void ) {
shaderCommands_t *input;
shader_t *shader;
input = &tess;
shader = input->shader;
//
// log this call
@@ -1380,7 +1383,7 @@ void RB_StageIteratorLightmappedMultitexture( void ) {
//
// set face culling appropriately
//
GL_Cull( input->shader->cullType );
GL_Cull( shader->cullType );
//
// set color, pointers, and lock