From: Mikko Rasa Date: Sun, 7 Nov 2010 09:16:47 +0000 (+0000) Subject: Add some missing virtual destructors and a base class copy-c'tor call X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=936a307eaf8dafd0874c74d211e991bd81a74387;p=libs%2Fgl.git Add some missing virtual destructors and a base class copy-c'tor call --- diff --git a/source/effect.h b/source/effect.h index 9f49c818..eb207745 100644 --- a/source/effect.h +++ b/source/effect.h @@ -14,6 +14,8 @@ namespace GL { class Effect { public: + virtual ~Effect() { } + virtual void prepare() =0; virtual void cleanup() =0; }; diff --git a/source/postprocessor.h b/source/postprocessor.h index e40d8043..25ed150a 100644 --- a/source/postprocessor.h +++ b/source/postprocessor.h @@ -21,6 +21,8 @@ class PostProcessor protected: PostProcessor() { } public: + virtual ~PostProcessor(); + /** Renders the effect. Takes the source texture as a parameter. */ diff --git a/source/renderpass.cpp b/source/renderpass.cpp index 18c318b5..93e2bc47 100644 --- a/source/renderpass.cpp +++ b/source/renderpass.cpp @@ -27,6 +27,7 @@ RenderPass::RenderPass(): { } RenderPass::RenderPass(const RenderPass &other): + Bindable(other), shprog(other.shprog), shdata(other.shdata ? new ProgramData(*other.shdata) : 0), material(other.material),