Correct texture handling.