aboutsummaryrefslogtreecommitdiff
path: root/guilib/Shader.h
diff options
context:
space:
mode:
authordavilla <davilla@svn>2010-05-07 18:21:40 +0000
committerdavilla <davilla@svn>2010-05-07 18:21:40 +0000
commit6105af6909e4efbd04aaaa2aebd92ebc2ee3c813 (patch)
tree0c8b8e2132e29978418755c14755752b76ed88be /guilib/Shader.h
parenteaf1ff993ef2b2b573cd537fca24990af834bd36 (diff)
move Free() into base class destructor
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29898 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/Shader.h')
-rw-r--r--guilib/Shader.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/guilib/Shader.h b/guilib/Shader.h
index 9431b1632e..f96549c251 100644
--- a/guilib/Shader.h
+++ b/guilib/Shader.h
@@ -40,9 +40,9 @@ namespace Shaders {
{
public:
CShader() { m_compiled = false; }
- virtual ~CShader() { }
+ virtual ~CShader() { Free(); }
virtual bool Compile() = 0;
- virtual void Free() = 0;
+ virtual void Free() {}
virtual GLuint Handle() = 0;
virtual void SetSource(const string& src) { m_source = src; }
virtual bool LoadSource(const string& filename, const string& prefix = "");
@@ -64,7 +64,7 @@ namespace Shaders {
{
public:
CVertexShader() { m_vertexShader = 0; }
- virtual ~CVertexShader() { Free(); }
+ virtual ~CVertexShader() {}
virtual void Free() {}
virtual GLuint Handle() { return m_vertexShader; }
@@ -96,7 +96,7 @@ namespace Shaders {
{
public:
CPixelShader() { m_pixelShader = 0; }
- virtual ~CPixelShader() { Free(); }
+ virtual ~CPixelShader() {}
virtual void Free() {}
virtual GLuint Handle() { return m_pixelShader; }