change the logic of texture loading
Merge pull request #7334 from dabingnn/v3_rollBackTexture

change the logic of texture loading