← Back to team overview

kicad-developers team mailing list archive

Re: Problems building..

 

--- In kicad-devel@xxxxxxxxxxxxxxx, "jean-pierre.charras@..." <jean-pierre.charras@...> wrote:
>
> 
> > > The line is the wxGLCanvas, was changed 6 days ago to have better 
> > compatibility with wx2.9.
> > > In the life of wx2.8 was added the 2.9-like constructor to 
> > facilitate the porting to the new release.
> > > Marco
> >
> Can you test my last commit?

Thank you jean pierre.
I've tested and doesn't compile well under MAC, i propose the change under.
Sorry for the late but i've used this time to take a deeper view to the wx-2.9 problems under OSX.

--
Marco 


Index: 3d_canvas.cpp
===================================================================
--- 3d_canvas.cpp	(revision 1884)
+++ 3d_canvas.cpp	(working copy)
@@ -80,8 +80,6 @@
 
// Make the new context current (activate it for use) with this canvas.
SetCurrent(*m_glRC);
-#else
- SetCurrent(NULL);
#endif
DisplayStatus();
}
Index: 3d_draw.cpp
===================================================================
--- 3d_draw.cpp	(revision 1884)
+++ 3d_draw.cpp	(working copy)
@@ -46,10 +46,8 @@
void Pcb3D_GLCanvas::Redraw( bool finish )
/******************************************/
{
-#if wxCHECK_VERSION( 2, 9, 0 )
+#if wxCHECK_VERSION( 2, 9, 0 ) 
SetCurrent(*m_glRC);
-#else
- SetCurrent(NULL);
#endif
InitGL();
 

 








References