From 936a307eaf8dafd0874c74d211e991bd81a74387 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 7 Nov 2010 09:16:47 +0000 Subject: [PATCH] Add some missing virtual destructors and a base class copy-c'tor call --- source/effect.h | 2 ++ source/postprocessor.h | 2 ++ source/renderpass.cpp | 1 + 3 files changed, 5 insertions(+) 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), -- 2.43.0