[Fix] Leaking textures.
This commit is contained in:
parent
3a7be80548
commit
3e14d9cd5a
@ -4,7 +4,7 @@
|
|||||||
namespace Gui {
|
namespace Gui {
|
||||||
|
|
||||||
Image::~Image(void) {
|
Image::~Image(void) {
|
||||||
#pragma message("Warning: Leaking GL textures..")
|
glDeleteTextures(1, &m_tex);
|
||||||
}
|
}
|
||||||
|
|
||||||
Image::Image(const char* filename) : Widget() {
|
Image::Image(const char* filename) : Widget() {
|
||||||
|
@ -27,6 +27,7 @@ public:
|
|||||||
glDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
virtual ~DeadVideoLink(void) {
|
virtual ~DeadVideoLink(void) {
|
||||||
|
glDeleteTextures(1, &m_tex);
|
||||||
delete m_message;
|
delete m_message;
|
||||||
}
|
}
|
||||||
virtual void Draw(void) {
|
virtual void Draw(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user