Work around awkward GLSL compiler bug on iOS.