Skip to content

Commit

Permalink
Added virtual destructor for GLResource.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrrp committed Nov 25, 2009
1 parent 2f2a058 commit 4dbaaf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GLResource.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

// Abstract superclass for all GLBlaat resources.
class GLResource
{
{
public:
virtual ~GLResource() {}
protected:
GLResource() {}; // can not instantiate abstract class
GLResource() {} // can not instantiate abstract class
};

0 comments on commit 4dbaaf7

Please sign in to comment.