From a249e93ad15bcebd22434264b879cda72f5e2e2f Mon Sep 17 00:00:00 2001 From: Miguel Pozo Date: Thu, 6 Jun 2024 15:50:09 +0200 Subject: [PATCH] GPU: Add missing virtual destructor to ShaderCompiler --- source/blender/gpu/intern/gpu_shader_private.hh | 4 +++- source/blender/gpu/opengl/gl_shader.hh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;