]> git.tdb.fi Git - libs/gl.git/commitdiff
Make Light's constructor protected and add a virtual destructor
authorMikko Rasa <tdb@tdb.fi>
Sat, 9 Oct 2021 10:24:37 +0000 (13:24 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 9 Oct 2021 10:24:56 +0000 (13:24 +0300)
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 &);