Fix a bug/error in tcmask texture autoselection.
Authored by: Safety0ff 2010-09-18
Parent: [r493]
Child: [r495]