Fix for texture coordinate generation.