Removed redundant comparison in compatibility renderer

Clang no longer reports "warning: comparison of array 'this->tcs' not equal to a null pointer is always true"
This commit is contained in:
alexey.lysiuk 2016-07-30 10:25:42 +03:00
parent da1762ac2c
commit e2a2d38a25
1 changed files with 15 additions and 18 deletions

View File

@ -705,8 +705,6 @@ bool GLWall::PrepareLight(ADynamicLight * light, int pass)
return false;
}
if (tcs != NULL)
{
Vector t1;
int outcnt[4] = { 0,0,0,0 };
@ -726,7 +724,6 @@ bool GLWall::PrepareLight(ADynamicLight * light, int pass)
}
// The light doesn't touch this polygon
if (outcnt[0] == 4 || outcnt[1] == 4 || outcnt[2] == 4 || outcnt[3] == 4) return false;
}
draw_dlight++;
return true;