Fix texture sampling.