Fix for FBO on iOS devices (from rock88).