Fix texture unit not being correctly binded.