diff --git a/src/glutils/glutils.hpp b/src/glutils/glutils.hpp index 9ceeb602..f46aabce 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); }