OpenGL GAL: Enter correct context (and lock) before changing AA mode

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8528
This commit is contained in:
Mike Williams 2021-08-26 09:44:39 -04:00 committed by Wayne Stambaugh
parent 43194dff72
commit ff9612b6da
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,8 @@ void OPENGL_GAL::PostPaint( wxPaintEvent& aEvent )
bool OPENGL_GAL::updatedGalDisplayOptions( const GAL_DISPLAY_OPTIONS& aOptions )
{
GAL_CONTEXT_LOCKER lock( this );
bool refresh = false;
if( m_options.gl_antialiasing_mode != m_compositor->GetAntialiasingMode() )