From: Stefan Csomor Date: Thu, 12 Feb 2009 07:16:32 +0000 (+0000) Subject: CGContextFlush is already called in SetNativeContext X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c0f6cd192451e0d0ab7d1382b95a6f9e155d6c44 CGContextFlush is already called in SetNativeContext git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index 74720dc37a..4e1fac0d53 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -1524,12 +1524,6 @@ wxMacCoreGraphicsContext::wxMacCoreGraphicsContext() : wxGraphicsContext(NULL) wxMacCoreGraphicsContext::~wxMacCoreGraphicsContext() { SetNativeContext(NULL); -#if wxOSX_USE_COCOA_OR_IPHONE - if ( m_view ) - { - CGContextFlush(m_cgContext); - } -#endif } void wxMacCoreGraphicsContext::GetSize( wxDouble* width, wxDouble* height)