mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 03:31:40 +00:00
OPENGL: Make the FrameBuffer and Texture classes destructors virtual
This commit is contained in:
parent
6c78bcebe4
commit
482255032e
@ -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();
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user