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:
Alex 2022-09-30 02:47:30 +03:00
parent 6de30b19a0
commit bd1698f80e
1 changed files with 1 additions and 1 deletions

View File

@ -1275,7 +1275,7 @@ public:
m_gal->BeginDrawing();
}
~GAL_DRAWING_CONTEXT()
~GAL_DRAWING_CONTEXT() noexcept( false )
{
m_gal->EndDrawing();
}