Reorging texture code