]> git.tdb.fi Git - libs/gl.git/commitdiff
Add some missing virtual destructors and a base class copy-c'tor call
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2010 09:16:47 +0000 (09:16 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2010 09:16:47 +0000 (09:16 +0000)
source/effect.h
source/postprocessor.h
source/renderpass.cpp

index 9f49c81855d4ac749b2509dd12ac4b6e49871810..eb207745a847ae0cdf59b4609206d79a374597be 100644 (file)
@@ -14,6 +14,8 @@ namespace GL {
 class Effect
 {
 public:
+       virtual ~Effect() { }
+
        virtual void prepare() =0;
        virtual void cleanup() =0;
 };
index e40d80438a5a556d55713b98aa32f296d9482798..25ed150a53f803b08f763c74c9a4836196ee99df 100644 (file)
@@ -21,6 +21,8 @@ class PostProcessor
 protected:
        PostProcessor() { }
 public:
+       virtual ~PostProcessor();
+
        /**
        Renders the effect.  Takes the source texture as a parameter.
        */
index 18c318b53b8d2ccddb81481411350e24beb9a0ac..93e2bc479b2d7197c3f9f8fe3bc59703c04d3579 100644 (file)
@@ -27,6 +27,7 @@ RenderPass::RenderPass():
 { }
 
 RenderPass::RenderPass(const RenderPass &other):
+       Bindable<RenderPass>(other),
        shprog(other.shprog),
        shdata(other.shdata ? new ProgramData(*other.shdata) : 0),
        material(other.material),