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>
This commit is contained in:
Tor Arne Vestbø 2018-07-31 13:18:36 +02:00
parent 51451ea269
commit 137e6c8277

View File

@ -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)