Moved texture to array binding so it is performed only once.