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
(cherry picked from commit 39089ad805
)
This commit is contained in:
parent
6de30b19a0
commit
bd1698f80e
|
@ -1275,7 +1275,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