Allow GAL_DRAWING_CONTEXT dtor to throw exceptions.
These destructors are implicitly noexcept, which woudnt't allow OpenGL errors to be caught in DoRePaint. Fixes https://gitlab.com/kicad/code/kicad/issues/12117
This commit is contained in:
parent
2b42163379
commit
39089ad805
|
@ -1112,7 +1112,7 @@ public:
|
||||||
m_gal->BeginDrawing();
|
m_gal->BeginDrawing();
|
||||||
}
|
}
|
||||||
|
|
||||||
~GAL_DRAWING_CONTEXT()
|
~GAL_DRAWING_CONTEXT() noexcept( false )
|
||||||
{
|
{
|
||||||
m_gal->EndDrawing();
|
m_gal->EndDrawing();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue