Removed duplicate cullType check.

This commit is contained in:
Klaus Silveira 2025-02-26 03:14:36 -05:00
parent 53153c6834
commit ca2432beca

View file

@ -2082,10 +2082,9 @@ void idMaterial::ParseMaterial( idLexer &src ) {
if ( cullType == CT_TWO_SIDED ) {
for ( i = 0 ; i < numStages ; i++ ) {
if ( pd->parseStages[i].lighting != SL_AMBIENT || pd->parseStages[i].texture.texgen != TG_EXPLICIT ) {
if ( cullType == CT_TWO_SIDED ) {
cullType = CT_FRONT_SIDED;
shouldCreateBackSides = true;
}
cullType = CT_FRONT_SIDED;
shouldCreateBackSides = true;
break;
}
}