GAL: Lock context when triggering resize
This action adjusts the compositor, so it must have exclusive access to the context.
This commit is contained in:
parent
a7672716f8
commit
bf164f7c4b
|
@ -242,6 +242,7 @@ void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) )
|
|||
|
||||
void EDA_DRAW_PANEL_GAL::onSize( wxSizeEvent& aEvent )
|
||||
{
|
||||
KIGFX::GAL_CONTEXT_LOCKER locker( m_gal );
|
||||
wxSize clientSize = GetClientSize();
|
||||
m_gal->ResizeScreen( clientSize.x, clientSize.y );
|
||||
|
||||
|
|
Loading…
Reference in New Issue