From c0c0377e560f8980cbb0e5746cd2aeb91338ae47 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 21 Apr 2022 21:01:26 +0800 Subject: Add default virtual destructor for material. --- material.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'material.h') diff --git a/material.h b/material.h index b340796..62bcf09 100644 --- a/material.h +++ b/material.h @@ -20,6 +20,8 @@ public: // If this matter scatters, manipulate r and return true. Otherwise return false (the light is absorbed entirely). // To make it thread-safe without locking mechanism, private states are passed-in as parameters. virtual bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const = 0; + + virtual ~material() = default; }; #endif //RT_MATERIAL_H -- cgit v1.2.3