Converting samples to glNext