[nostalgia/core,turbine] Give Turbine and NostalgiaCore Context types virtual destructors
This commit is contained in:
parent
de6308418e
commit
39eb82596b
@ -23,6 +23,7 @@ class Context {
|
|||||||
Context(Context &other) noexcept = delete;
|
Context(Context &other) noexcept = delete;
|
||||||
Context(const Context &other) noexcept = delete;
|
Context(const Context &other) noexcept = delete;
|
||||||
Context(const Context &&other) noexcept = delete;
|
Context(const Context &&other) noexcept = delete;
|
||||||
|
virtual ~Context() noexcept = default;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ struct GlContext: public core::Context {
|
|||||||
ox::Optional<ox::Size> renderSize;
|
ox::Optional<ox::Size> renderSize;
|
||||||
renderer::Drawer drawer;
|
renderer::Drawer drawer;
|
||||||
explicit GlContext(turbine::Context &tctx) noexcept;
|
explicit GlContext(turbine::Context &tctx) noexcept;
|
||||||
~GlContext() noexcept;
|
~GlContext() noexcept override;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ class Context {
|
|||||||
Context(const Context &&other) noexcept = delete;
|
Context(const Context &&other) noexcept = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
inline ~Context() noexcept {
|
virtual inline ~Context() noexcept {
|
||||||
shutdown(*this);
|
shutdown(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user