Re: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2008-08-14 08:27:03
|
On Wed, Aug 13, 2008 at 10:24 AM, Mathieu Malaterre <mat...@gm...> wrote: > Doug, > > On Wed, Aug 13, 2008 at 6:15 AM, Doug McCorkle <mc...@ia...> wrote: > > >> mccdo:wxVTK mccdo$ cvs diff -u . >> cvs diff: Diffing . >> cvs diff: Diffing Modules >> cvs diff: Diffing Sample >> cvs diff: Diffing oldbin >> cvs diff: Diffing src >> Index: src/wxVTKRenderWindowInteractor.cxx >> =================================================================== >> RCS file: /cvsroot/wxvtk/wxVTK/src/wxVTKRenderWindowInteractor.cxx,v >> retrieving revision 1.40 >> diff -u -r1.40 wxVTKRenderWindowInteractor.cxx >> --- src/wxVTKRenderWindowInteractor.cxx 10 Aug 2008 23:00:36 -0000 1.40 >> +++ src/wxVTKRenderWindowInteractor.cxx 13 Aug 2008 04:13:33 -0000 >> @@ -33,7 +33,7 @@ >> #include "vtkDebugLeaks.h" >> >> #ifdef __WXMAC__ >> -#include "vtkCarbonRenderWindow.h" >> +#include "vtkCocoaRenderWindow.h" >> #endif >> >> //Keep this for compatibilty reason, this was introduced in wxGTK 2.4.0 >> @@ -376,10 +376,10 @@ >> #ifdef __WXMAC__ >> // This solves a problem with repainting after a window resize >> // See also: >> http://sourceforge.net/mailarchive/forum.php?thread_id=31690967&forum_id=41789 >> - vtkCarbonRenderWindow* rwin = >> vtkCarbonRenderWindow::SafeDownCast(RenderWindow); >> + vtkCocoaRenderWindow* rwin = >> vtkCocoaRenderWindow::SafeDownCast(RenderWindow); >> if( rwin ) >> { >> - rwin->UpdateGLRegion(); >> + rwin->UpdateContext(); >> } >> #endif >> } > > If you get a chance, please try the version from CVS HEAD, it should > work for both the Mac/Carbon and the Mac/Cocoa now. > > $ cvs ci -m"COMP: Fix compilation problem on Mac+Cocoa builds. Thanks > to Doug McCorkle for report & patch" > Checking in wxVTKRenderWindowInteractor.cxx; > /cvsroot/wxvtk/wxVTK/src/wxVTKRenderWindowInteractor.cxx,v <-- > wxVTKRenderWindowInteractor.cxx > new revision: 1.41; previous revision: 1.40 > done > > > Thanks for patch > -- > Mathieu > -- Mathieu |