From ff9612b6dad97ec8820a506956f1fdcc652b1d52 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Thu, 26 Aug 2021 09:44:39 -0400 Subject: [PATCH] OpenGL GAL: Enter correct context (and lock) before changing AA mode Fixes https://gitlab.com/kicad/code/kicad/-/issues/8528 --- common/gal/opengl/opengl_gal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 31f40886b5..3c9cbf2330 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -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() )