Fixed global texture loading

Fixed global texture loading