fixed two mistakes in texture combine code