fixed duplicate definition.
Merge pull request #7334 from dabingnn/v3_rollBackTexture

change the logic of texture loading
Merge pull request #7338 from Dhilan007/v3

fixed duplicate definition.