From bd1698f80eb24526a36100ac2e22cf4429468350 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 30 Sep 2022 02:47:30 +0300 Subject: [PATCH] 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 39089ad805c722af8fa43f646d610d6a3f96b9bc) --- include/gal/graphics_abstraction_layer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gal/graphics_abstraction_layer.h b/include/gal/graphics_abstraction_layer.h index 172df84cb1..753ad4781a 100644 --- a/include/gal/graphics_abstraction_layer.h +++ b/include/gal/graphics_abstraction_layer.h @@ -1275,7 +1275,7 @@ public: m_gal->BeginDrawing(); } - ~GAL_DRAWING_CONTEXT() + ~GAL_DRAWING_CONTEXT() noexcept( false ) { m_gal->EndDrawing(); }