GAL defaults to Cairo, so KiCad does not fail on completely OpenGL incapable systems.
Board is cached in GAL only when the canvas is activated.
This commit is contained in:
parent
89161331e4
commit
82661dc3a6
|
@ -157,7 +157,7 @@ PCB_BASE_FRAME::PCB_BASE_FRAME( KIWAY* aKiway, wxWindow* aParent, ID_DRAWFRAME_T
|
||||||
|
|
||||||
SetGalCanvas( new EDA_DRAW_PANEL_GAL(
|
SetGalCanvas( new EDA_DRAW_PANEL_GAL(
|
||||||
this, -1, wxPoint( 0, 0 ), m_FrameSize,
|
this, -1, wxPoint( 0, 0 ), m_FrameSize,
|
||||||
EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL ) );
|
EDA_DRAW_PANEL_GAL::GAL_TYPE_CAIRO ) );
|
||||||
|
|
||||||
// Hide by default, it has to be explicitly shown
|
// Hide by default, it has to be explicitly shown
|
||||||
GetGalCanvas()->Hide();
|
GetGalCanvas()->Hide();
|
||||||
|
|
|
@ -490,7 +490,7 @@ void PCB_EDIT_FRAME::SetBoard( BOARD* aBoard )
|
||||||
{
|
{
|
||||||
PCB_BASE_FRAME::SetBoard( aBoard );
|
PCB_BASE_FRAME::SetBoard( aBoard );
|
||||||
|
|
||||||
if( GetGalCanvas() )
|
if( IsGalCanvasActive() )
|
||||||
{
|
{
|
||||||
ViewReloadBoard( aBoard );
|
ViewReloadBoard( aBoard );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue