]> git.saurik.com Git - wxWidgets.git/commitdiff
CGContextFlush is already called in SetNativeContext
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 12 Feb 2009 07:16:32 +0000 (07:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 12 Feb 2009 07:16:32 +0000 (07:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/graphics.cpp

index 74720dc37aed07f46cd7f24c9e95b96d0c0f6c9b..4e1fac0d53335a1f738f3f1f41c24df52f4731e1 100644 (file)
@@ -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)