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:
Alex 2022-09-30 02:47:30 +03:00
parent 2b42163379
commit 39089ad805
1 changed files with 1 additions and 1 deletions

View File

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