diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-31 13:18:36 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-03 22:50:22 +0000 |
commit | 137e6c82778934f18474e1ab3df9b70f1a1ad183 (patch) | |
tree | 3568d44cb516de3343293e3dc47bea0ede4cf780 /src/plugins/platforms/cocoa | |
parent | 51451ea2693b6761110b827249527947d6a9beb9 (diff) |
macOS: Remove unneeded auto-release-pools in QCocoaGLContext
The makeCurrent one was not explained in the commit message that introduced
it, and doesn't make any sense, while the constructor one is no longer needed.
Change-Id: I67e2f2aaff5d8602781b27f122f415068a1f2301
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoaglcontext.mm | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaglcontext.mm b/src/plugins/platforms/cocoa/qcocoaglcontext.mm index 655c40e345..876b01e4c7 100644 --- a/src/plugins/platforms/cocoa/qcocoaglcontext.mm +++ b/src/plugins/platforms/cocoa/qcocoaglcontext.mm @@ -112,8 +112,6 @@ QCocoaGLContext::QCocoaGLContext(const QSurfaceFormat &format, QPlatformOpenGLCo if (m_format.renderableType() != QSurfaceFormat::OpenGL) return; - QMacAutoReleasePool pool; // For the SG Canvas render thread - m_shareContext = share ? static_cast<QCocoaGLContext *>(share)->nsOpenGLContext() : nil; if (m_shareContext) { @@ -372,7 +370,6 @@ bool QCocoaGLContext::makeCurrent(QPlatformSurface *surface) Q_ASSERT(surface->surface()->supportsOpenGL()); - QMacAutoReleasePool pool; [m_context makeCurrentContext]; if (surface->surface()->surfaceClass() == QSurface::Offscreen) |