Hack fix for render-to-texture failing on iOS.