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:
Seth Hillbrand 2018-10-15 06:07:52 -07:00
parent a7672716f8
commit bf164f7c4b
1 changed files with 1 additions and 0 deletions

View File

@ -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 );