src/opengl/qgl_mac.mm
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   458     doneCurrent();
   458     doneCurrent();
   459 #ifndef QT_MAC_USE_COCOA
   459 #ifndef QT_MAC_USE_COCOA
   460     if (d->cx)
   460     if (d->cx)
   461         aglDestroyContext((AGLContext)d->cx);
   461         aglDestroyContext((AGLContext)d->cx);
   462 #else
   462 #else
       
   463     QMacCocoaAutoReleasePool pool;
   463     [static_cast<NSOpenGLContext *>(d->cx) release];
   464     [static_cast<NSOpenGLContext *>(d->cx) release];
   464 #endif
   465 #endif
   465     d->cx = 0;
   466     d->cx = 0;
   466 #ifndef QT_MAC_USE_COCOA
   467 #ifndef QT_MAC_USE_COCOA
   467     if (d->vi)
   468     if (d->vi)