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:
parent
43194dff72
commit
ff9612b6da
|
@ -372,6 +372,8 @@ void OPENGL_GAL::PostPaint( wxPaintEvent& aEvent )
|
||||||
|
|
||||||
bool OPENGL_GAL::updatedGalDisplayOptions( const GAL_DISPLAY_OPTIONS& aOptions )
|
bool OPENGL_GAL::updatedGalDisplayOptions( const GAL_DISPLAY_OPTIONS& aOptions )
|
||||||
{
|
{
|
||||||
|
GAL_CONTEXT_LOCKER lock( this );
|
||||||
|
|
||||||
bool refresh = false;
|
bool refresh = false;
|
||||||
|
|
||||||
if( m_options.gl_antialiasing_mode != m_compositor->GetAntialiasingMode() )
|
if( m_options.gl_antialiasing_mode != m_compositor->GetAntialiasingMode() )
|
||||||
|
|
Loading…
Reference in New Issue