equal
deleted
inserted
replaced
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) |