diff --git a/source/blender/gpu/intern/gpu_shader_private.hh b/source/blender/gpu/intern/gpu_shader_private.hh index 23d7cad9ba7..aa6b81d8d83 100644 --- a/source/blender/gpu/intern/gpu_shader_private.hh +++ b/source/blender/gpu/intern/gpu_shader_private.hh @@ -173,6 +173,8 @@ class ShaderCompiler { }; public: + virtual ~ShaderCompiler(){}; + Shader *compile(const shader::ShaderCreateInfo &info, bool is_batch_compilation); virtual BatchHandle batch_compile(Span &infos) = 0; @@ -193,7 +195,7 @@ class ShaderCompilerGeneric : public ShaderCompiler { Map batches; public: - ~ShaderCompilerGeneric(); + virtual ~ShaderCompilerGeneric() override; virtual BatchHandle batch_compile(Span &infos) override; virtual bool batch_is_ready(BatchHandle handle) override; diff --git a/source/blender/gpu/opengl/gl_shader.hh b/source/blender/gpu/opengl/gl_shader.hh index 6240896d7d8..38a99c276cf 100644 --- a/source/blender/gpu/opengl/gl_shader.hh +++ b/source/blender/gpu/opengl/gl_shader.hh @@ -278,7 +278,7 @@ class GLShaderCompiler : public ShaderCompiler { bool worker_is_lost(GLCompilerWorker *&worker); public: - ~GLShaderCompiler(); + virtual ~GLShaderCompiler() override; virtual BatchHandle batch_compile(Span &infos) override; virtual bool batch_is_ready(BatchHandle handle) override;