[glutils] Fix destructors

This commit is contained in:
Gary Talent 2023-11-24 13:46:46 -06:00
parent 79b6046813
commit c8ad05215f

View File

@ -17,7 +17,9 @@ namespace glutils {
constexpr ox::StringView GlslVersion = "#version 330"; constexpr ox::StringView GlslVersion = "#version 330";
struct Empty {}; struct Empty {
virtual ~Empty() noexcept = default;
};
struct TextureBase { struct TextureBase {
@ -41,6 +43,8 @@ struct TextureBase {
return *this; return *this;
} }
virtual ~TextureBase() noexcept = default;
}; };
@ -60,7 +64,7 @@ struct GLObject: public Base {
o.id = 0; o.id = 0;
} }
~GLObject() noexcept { ~GLObject() noexcept override {
del(id); del(id);
} }