]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/light.h
Make Light's constructor protected and add a virtual destructor
[libs/gl.git] / source / materials / light.h
index 606ec67325812d535d305c5756ca82bcfb439528..c0f929cf24377cd4771793ba0fcee889b4736012 100644 (file)
@@ -51,8 +51,9 @@ protected:
        Color color;
        unsigned generation;
 
-public:
        Light();
+public:
+       virtual ~Light() { }
 
        /** Sets the color of the Light. */
        void set_color(const Color &);