diff --git a/src/plugins/platforms/ios/qioscontext.mm b/src/plugins/platforms/ios/qioscontext.mm index 807c75df549..735dd26b6db 100644 --- a/src/plugins/platforms/ios/qioscontext.mm +++ b/src/plugins/platforms/ios/qioscontext.mm @@ -156,6 +156,9 @@ GLuint QIOSContext::defaultFramebufferObject(QPlatformSurface *surface) const if (framebufferObject.renderbufferWidth != platformWindow->effectiveWidth() || framebufferObject.renderbufferHeight != platformWindow->effectiveHeight()) { + [EAGLContext setCurrentContext:m_eaglContext]; + glBindFramebuffer(GL_FRAMEBUFFER, framebufferObject.handle); + glBindRenderbuffer(GL_RENDERBUFFER, framebufferObject.colorRenderbuffer); UIView *view = reinterpret_cast(platformWindow->winId()); CAEAGLLayer *layer = static_cast(view.layer);