diff --git a/src/plugins/platforms/ios/qioscontext.mm b/src/plugins/platforms/ios/qioscontext.mm index 68db28212b..00629a84ab 100644 --- a/src/plugins/platforms/ios/qioscontext.mm +++ b/src/plugins/platforms/ios/qioscontext.mm @@ -108,12 +108,12 @@ void QIOSContext::swapBuffers(QPlatformSurface *surface) GLuint QIOSContext::defaultFramebufferObject(QPlatformSurface *surface) const { - return static_cast(surface)->framebufferObject(*const_cast(this)); + return static_cast(surface)->framebufferObject(*this); } GLuint QIOSContext::defaultColorRenderbuffer(QPlatformSurface *surface) const { - return static_cast(surface)->colorRenderbuffer(*const_cast(this)); + return static_cast(surface)->colorRenderbuffer(*this); } QFunctionPointer QIOSContext::getProcAddress(const QByteArray& functionName)