Fix flat shading for unsupported hardware.