From: Mikko Rasa Date: Sat, 9 Oct 2021 10:24:37 +0000 (+0300) Subject: Make Light's constructor protected and add a virtual destructor X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3bc34893905a2df622894aadcb6669f27f186772;p=libs%2Fgl.git Make Light's constructor protected and add a virtual destructor --- diff --git a/source/materials/light.h b/source/materials/light.h index 606ec673..c0f929cf 100644 --- a/source/materials/light.h +++ b/source/materials/light.h @@ -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 &);