OPENGL: Make the FrameBuffer and Texture classes destructors virtual

This commit is contained in:
Bastien Bouclet 2016-01-09 08:16:23 +01:00
parent 6c78bcebe4
commit 482255032e
2 changed files with 3 additions and 3 deletions

View File

@ -33,12 +33,12 @@ public:
FrameBuffer(uint width, uint height);
FrameBuffer(GLuint texture_name, uint width, uint height, uint texture_width, uint texture_height);
#ifdef AMIGAOS
~FrameBuffer() {}
virtual ~FrameBuffer() {}
void attach() {}
void detach() {}
#else
~FrameBuffer();
virtual ~FrameBuffer();
void attach();
void detach();

View File

@ -34,7 +34,7 @@ public:
Texture(const Graphics::Surface &srf);
Texture(uint width, uint height);
Texture(GLuint texture_name, uint width, uint height, uint texture_width, uint texture_height);
~Texture();
virtual ~Texture();
GLuint getTextureName() const { return _texture; }
uint getWidth() const { return _width; }