From 0e9f52f9e55cb8cc1099c3fe0c47f3e80b4f94f9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 5 Jan 2017 15:48:23 +0200 Subject: [PATCH] Added virtual destructor to FPresentShaderBase class No more 'delete called on non-final class that has virtual functions but non-virtual destructor' warnings reported by GCC/Clang --- src/gl/shaders/gl_presentshader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/shaders/gl_presentshader.h b/src/gl/shaders/gl_presentshader.h index 6f9e1bfd7d..dcf42cdf8b 100644 --- a/src/gl/shaders/gl_presentshader.h +++ b/src/gl/shaders/gl_presentshader.h @@ -6,6 +6,7 @@ class FPresentShaderBase { public: + virtual ~FPresentShaderBase() {} virtual void Bind() = 0; FBufferedUniform1f InvGamma; @@ -26,4 +27,4 @@ public: FBufferedUniformSampler InputTexture; }; -#endif \ No newline at end of file +#endif