From c8ad05215f24a4a0eec42eaccab2e3ba38373c7b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 24 Nov 2023 13:46:46 -0600 Subject: [PATCH] [glutils] Fix destructors --- src/glutils/glutils.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/glutils/glutils.hpp b/src/glutils/glutils.hpp index 9ceeb6023..f46aabced 100644 --- a/src/glutils/glutils.hpp +++ b/src/glutils/glutils.hpp @@ -17,7 +17,9 @@ namespace glutils { constexpr ox::StringView GlslVersion = "#version 330"; -struct Empty {}; +struct Empty { + virtual ~Empty() noexcept = default; +}; struct TextureBase { @@ -41,6 +43,8 @@ struct TextureBase { return *this; } + virtual ~TextureBase() noexcept = default; + }; @@ -60,7 +64,7 @@ struct GLObject: public Base { o.id = 0; } - ~GLObject() noexcept { + ~GLObject() noexcept override { del(id); }