Fixed texture binding to texture units.